Documentation ¶
Index ¶
- Variables
- type Alt
- type Alts
- type Builder
- type Node
- func (n *Node) Child(i int) *Node
- func (n *Node) ChildCount() int
- func (n *Node) Each(visit func(*Node))
- func (n *Node) EachItem(visit func(*Node))
- func (s *Node) Find(rule *R) *Node
- func (n *Node) Get(r *R) string
- func (n *Node) ID() int
- func (n *Node) Is(r *R) bool
- func (n *Node) LastChild() *Node
- func (n *Node) Pos() int
- func (n *Node) Rule() *R
- func (n *Node) String() string
- func (n *Node) Value() []byte
- type Parser
- type R
- type Rules
- type Token
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EOF = newTerm().As("EOF") SOF = newTerm().As("SOF") )
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder() *Builder
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) ChildCount ¶
Click to show internal directories.
Click to hide internal directories.