Documentation ¶
Overview ¶
Package ast provides the parser for WDTE.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Epsilon ¶
type Epsilon struct {
// contains filtered or unexported fields
}
An Epsilon is a special terminal which represnts a non-action.
type NTerm ¶
type NTerm struct {
// contains filtered or unexported fields
}
An NTerm is a Node that represents a non-terminal. NTerms are always parent nodes.
func (*NTerm) AddChild ¶
AddChild adds a child to the right-hand side of the NTerm's list of children.
type Node ¶
type Node interface { // Parent returns the Node's parent, or nil if it is the root node. Parent() Node // Children returns the node's children in left-to-right order. Children() []Node }
A Node represents a node of the AST.
type ParseError ¶
A ParseError is returned if an error happens during parsing.
func (ParseError) Error ¶
func (err ParseError) Error() string
Click to show internal directories.
Click to hide internal directories.