Documentation ¶
Index ¶
- Constants
- Variables
- type AdditionExpr
- type AutoExpr
- type Binding
- type BooleanExpr
- type CallExpr
- type ConcatenationExpr
- type DynamlGrammar
- type Expression
- type IntegerExpr
- type ListExpr
- type MergeExpr
- type NilExpr
- type OrExpr
- type ReferenceExpr
- type Rule
- type State16
- type State32
- type StringExpr
- type SubtractionExpr
- type TokenTree
Constants ¶
View Source
const END_SYMBOL byte = 0
Variables ¶
View Source
var Rul3s = [...]string{
"Unknown",
"Dynaml",
"Expression",
"Level2",
"Or",
"Level1",
"Concatenation",
"Addition",
"Subtraction",
"Level0",
"Grouped",
"Call",
"Arguments",
"Name",
"Comma",
"Integer",
"String",
"Boolean",
"Nil",
"List",
"Contents",
"Merge",
"Auto",
"Reference",
"ws",
"Pre_",
"_In_",
"_Suf",
}
Functions ¶
This section is empty.
Types ¶
type AdditionExpr ¶
type AdditionExpr struct { A Expression B Expression }
type BooleanExpr ¶
type BooleanExpr struct {
Value bool
}
type CallExpr ¶
type CallExpr struct { Name string Arguments []Expression }
type ConcatenationExpr ¶
type ConcatenationExpr struct { A Expression B Expression }
type DynamlGrammar ¶
type DynamlGrammar struct { Buffer string Parse func(rule ...int) error Reset func() TokenTree // contains filtered or unexported fields }
func (*DynamlGrammar) Highlighter ¶
func (p *DynamlGrammar) Highlighter()
func (*DynamlGrammar) Init ¶
func (p *DynamlGrammar) Init()
func (*DynamlGrammar) PrintSyntaxTree ¶
func (p *DynamlGrammar) PrintSyntaxTree()
type Expression ¶
type IntegerExpr ¶
type IntegerExpr struct {
Value int
}
type ListExpr ¶
type ListExpr struct {
Contents []Expression
}
type OrExpr ¶
type OrExpr struct { A Expression B Expression }
type ReferenceExpr ¶
type ReferenceExpr struct {
Path []string
}
type Rule ¶
type Rule uint8
The rule types inferred from the grammar are below.
const ( RuleUnknown Rule = iota RuleDynaml RuleExpression RuleLevel2 RuleOr RuleLevel1 RuleConcatenation RuleAddition RuleSubtraction RuleLevel0 RuleGrouped RuleCall RuleArguments RuleName RuleComma RuleInteger RuleString RuleBoolean RuleNil RuleList RuleContents RuleMerge RuleAuto RuleReference Rulews RulePre_ Rule_In_ Rule_Suf )
type State16 ¶
type State16 struct {
// contains filtered or unexported fields
}
func (*State16) GetToken32 ¶
func (t *State16) GetToken32() token32
type State32 ¶
type State32 struct {
// contains filtered or unexported fields
}
func (*State32) GetToken32 ¶
func (t *State32) GetToken32() token32
type StringExpr ¶
type StringExpr struct {
Value string
}
type SubtractionExpr ¶
type SubtractionExpr struct { A Expression B Expression }
Click to show internal directories.
Click to hide internal directories.