Documentation ¶
Index ¶
- func Unmarshal(source []byte, target any) error
- type Argument
- func (a Argument) AsBool() (bool, error)
- func (a Argument) AsDuration() (time.Duration, error)
- func (a Argument) AsFloat32() (value float32, err error)
- func (a Argument) AsFloat64() (value float64, err error)
- func (a Argument) AsInt() (value int, err error)
- func (a Argument) AsInt32() (value int32, err error)
- func (a Argument) AsInt64() (value int64, err error)
- func (a Argument) AsTime() (time.Time, error)
- func (a Argument) AsUInt() (value uint, err error)
- func (a Argument) AsUInt32() (value uint32, err error)
- func (a Argument) AsUInt64() (value uint64, err error)
- func (a Argument) Empty() bool
- func (a Argument) String() string
- func (a Argument) UnmarshalText(target encoding.TextUnmarshaler) error
- type ConfigError
- type Instruction
- func (n *Instruction) Argument(index int) Argument
- func (v *Instruction) Arguments() []Argument
- func (n *Instruction) Clone() (clone *Instruction)
- func (v *Instruction) Name() string
- func (v *Instruction) NumArguments() int
- func (v *Instruction) Path() (path string)
- func (n *Instruction) Root() (scope *Scope)
- func (v *Instruction) Scope() *Scope
- func (v *Instruction) String() (out string)
- func (v *Instruction) SubScope() *Scope
- type Parser
- func (p *Parser) EOF() bool
- func (p *Parser) IsComment() bool
- func (p *Parser) IsLiteral() bool
- func (p *Parser) IsOperator(kind ...string) bool
- func (p *Parser) IsSeperator() bool
- func (p *Parser) IsString() bool
- func (p *Parser) Next() uparse.Token
- func (p *Parser) Parse(input string) (scope *Scope, err error)
- func (p *Parser) SkipWhitespace() bool
- func (p *Parser) Token() uparse.Token
- type Scope
- func (n *Scope) Clone() (scope *Scope)
- func (n *Scope) GetInstructions(name string) (matches []*Instruction)
- func (s *Scope) Instructions() []*Instruction
- func (s *Scope) Parent() *Scope
- func (n *Scope) Path() (path string)
- func (s *Scope) Print()
- func (n *Scope) QueryInstructions(pattern string) (matches []*Instruction)
- func (n *Scope) Root() (scope *Scope)
- func (s *Scope) String() (out string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Argument ¶ added in v0.1.11
type Argument string
func (Argument) UnmarshalText ¶ added in v0.1.20
func (a Argument) UnmarshalText(target encoding.TextUnmarshaler) error
type ConfigError ¶
type ConfigError struct {
// contains filtered or unexported fields
}
func NewConfigError ¶
func NewConfigError(line int, char int, message string) *ConfigError
func (*ConfigError) Error ¶
func (e *ConfigError) Error() string
type Instruction ¶ added in v0.1.14
type Instruction struct {
// contains filtered or unexported fields
}
func NewInstruction ¶ added in v0.1.14
func NewInstruction(scope *Scope, index int) *Instruction
func (*Instruction) Argument ¶ added in v0.1.14
func (n *Instruction) Argument(index int) Argument
func (*Instruction) Arguments ¶ added in v0.1.14
func (v *Instruction) Arguments() []Argument
func (*Instruction) Clone ¶ added in v0.1.14
func (n *Instruction) Clone() (clone *Instruction)
func (*Instruction) Name ¶ added in v0.1.14
func (v *Instruction) Name() string
func (*Instruction) NumArguments ¶ added in v0.1.14
func (v *Instruction) NumArguments() int
func (*Instruction) Path ¶ added in v0.1.14
func (v *Instruction) Path() (path string)
func (*Instruction) Root ¶ added in v0.1.14
func (n *Instruction) Root() (scope *Scope)
func (*Instruction) Scope ¶ added in v0.1.14
func (v *Instruction) Scope() *Scope
func (*Instruction) String ¶ added in v0.1.14
func (v *Instruction) String() (out string)
func (*Instruction) SubScope ¶ added in v0.1.14
func (v *Instruction) SubScope() *Scope
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) IsOperator ¶
func (*Parser) IsSeperator ¶
func (*Parser) SkipWhitespace ¶ added in v0.1.14
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (*Scope) GetInstructions ¶ added in v0.1.14
func (n *Scope) GetInstructions(name string) (matches []*Instruction)
func (*Scope) Instructions ¶ added in v0.1.15
func (s *Scope) Instructions() []*Instruction
func (*Scope) QueryInstructions ¶ added in v0.1.14
func (n *Scope) QueryInstructions(pattern string) (matches []*Instruction)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.