Documentation
¶
Index ¶
- func ParseError[T tx.TokenKind](msg string, token tx.Token[T]) error
- type Node
- func (self *Node[T, E]) Push(nodes ...*Node[T, E])
- func (self *Node[T, E]) SetParent(n Node[T, E])
- func (self *Node[T, E]) Value() []byte
- func (self *Node[T, E]) VisitInOrder(visit func(n *Node[T, E]))
- func (self *Node[T, E]) VisitPostOrder(visit func(n *Node[T, E]))
- func (self *Node[T, E]) VisitPreorder(visit func(n *Node[T, E]))
- type NodeKind
- type Parser
- type Token
- type TokenKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node[T tx.TokenKind, E NodeKind] struct { Token tx.Token[T] Kind E Parent *Node[T, E] Children []*Node[T, E] }
func (*Node[T, E]) VisitInOrder ¶ added in v0.6.0
func (*Node[T, E]) VisitPostOrder ¶ added in v0.6.0
func (*Node[T, E]) VisitPreorder ¶ added in v0.6.0
type NodeKind ¶
type NodeKind interface{ comparable }
Click to show internal directories.
Click to hide internal directories.