Versions in this module Expand all Collapse all v1 v1.0.1 Oct 28, 2020 Changes in this version + var TypeMap = [...]string + type Node interface + Copy func() *node + Escaped func() string + Front func() *node + GetId func() int + GetType func() Type + Init func() + Len func() int + Next func() *node + PopFront func() *node + PushBack func(value *node) + PushFront func(value *node) + SetId func(id int) + SetString func(s string) + SetType func(t Type) + Slice func() []*node + type Tree struct + Actions []Node + Ast bool + Bits int + EndSymbol rune + Generator string + HasActions bool + HasCharacter bool + HasCommit bool + HasDot bool + HasPush bool + HasRange bool + HasString bool + Imports []string + PackageName string + PegRuleType string + RuleNames []Node + Rules map[string]Node + RulesCount int + Strict bool + StructName string + StructVariables string + func New(inline, _switch, noast bool) *Tree + func (n *Tree) Copy() *node + func (n *Tree) Escaped() string + func (n *Tree) Front() *node + func (n *Tree) GetId() int + func (n *Tree) Init() + func (n *Tree) Len() (c int) + func (n *Tree) Next() *node + func (n *Tree) PopFront() *node + func (n *Tree) PushBack(value *node) + func (n *Tree) PushFront(value *node) + func (n *Tree) SetId(id int) + func (n *Tree) SetString(s string) + func (n *Tree) SetType(t Type) + func (n *Tree) Slice() []*node + func (n *Tree) String() string + func (t *Tree) AddAction(text string) + func (t *Tree) AddAlternate() + func (t *Tree) AddCharacter(text string) + func (t *Tree) AddDot() + func (t *Tree) AddDoubleCharacter(text string) + func (t *Tree) AddDoubleRange() + func (t *Tree) AddExpression() + func (t *Tree) AddHexaCharacter(text string) + func (t *Tree) AddImport(text string) + func (t *Tree) AddName(text string) + func (t *Tree) AddNil() + func (t *Tree) AddOctalCharacter(text string) + func (t *Tree) AddPackage(text string) + func (t *Tree) AddPeekFor() + func (t *Tree) AddPeekNot() + func (t *Tree) AddPeg(text string) + func (t *Tree) AddPlus() + func (t *Tree) AddPredicate(text string) + func (t *Tree) AddPush() + func (t *Tree) AddQuery() + func (t *Tree) AddRange() + func (t *Tree) AddRule(name string) + func (t *Tree) AddSequence() + func (t *Tree) AddStar() + func (t *Tree) AddState(text string) + func (t *Tree) AddStateChange(text string) + func (t *Tree) Compile(file string, args []string, out io.Writer) (err error) + type Type uint8 + const TypeAction + const TypeAlternate + const TypeCharacter + const TypeCommit + const TypeDot + const TypeImplicitPush + const TypeImport + const TypeLast + const TypeName + const TypeNil + const TypePackage + const TypePeekFor + const TypePeekNot + const TypePeg + const TypePlus + const TypePredicate + const TypePush + const TypeQuery + const TypeRange + const TypeRule + const TypeSequence + const TypeStar + const TypeState + const TypeStateChange + const TypeString + const TypeUnknown + const TypeUnorderedAlternate + func (t Type) GetType() Type