Documentation ¶
Index ¶
- type Node
- func (n *Node) AddChildren(next *Node)
- func (n *Node) GetChildren() [][]*Node
- func (n *Node) GetFirstSet() []token.Type
- func (n *Node) GetFollowSet() []token.Type
- func (n *Node) IsTerminal() bool
- func (n *Node) MayEpsilon() bool
- func (n *Node) PrintChildren()
- func (n *Node) RemoveLastChild()
- func (n *Node) SetRepeatTime(min, max int)
- func (n *Node) SetToken(t *token.Token)
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
func NewNodeWithDefault ¶
func (*Node) AddChildren ¶
func (*Node) GetChildren ¶
func (*Node) GetFirstSet ¶
func (*Node) GetFollowSet ¶
func (*Node) IsTerminal ¶
func (*Node) MayEpsilon ¶
func (*Node) PrintChildren ¶
func (n *Node) PrintChildren()
func (*Node) RemoveLastChild ¶
func (n *Node) RemoveLastChild()
func (*Node) SetRepeatTime ¶
type Type ¶
type Type int
const ( // non-terminal Root Type = iota SelectStatement SimpleSelectStatement ColumnList TableName WhereClause ColumnIdentifier OtherColumns ColumnWithAlias ColumnExpression AliasName ColumnName OtherExpression ExpressionOperator LiteralExpression Literal OtherLiteral ColumnComparison OtherColumnName OtherColumnComparison WhereOperator ComparisonOperator StatementTerminator Epsilon // terminal SelectKeyword FromKeyword AsKeyword WhereKeyword AndKeyword OrKeyword Identifier StringLiteral NumberLiteral SemicolonOperator CommaOperator PlusOperator MinusOperator GreaterOrEqualOperator GreaterThanOperator LessOrEqualOperator LessThanOperator EqualOperator NotEqual1Operator NotEqual2Operator End )
func (Type) GetTokenType ¶
func (Type) IsTerminal ¶
Click to show internal directories.
Click to hide internal directories.