Documentation ¶
Index ¶
Constants ¶
View Source
const ( NO_RULES = 112 GOAL_RULE = NO_RULES + 1 NO_SYMBOLS = 101 NO_STATES = 193 )
View Source
const ( NO_KEYWORD = 7 ID_LENGTH = 12 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) IsTerminal ¶
type Parser ¶
type Parser struct { ShiftHandle func(Token) ReduceHandle func(Rule) Input []Token // contains filtered or unexported fields }
func (*Parser) CurrentState ¶
type TokenKind ¶
type TokenKind int
const ( Tnull TokenKind = -1 Tnot TokenKind = 0 Tnotequ TokenKind = 1 Tremainder TokenKind = 2 TremAssign TokenKind = 3 Tident TokenKind = 4 Tnumber TokenKind = 5 Tand TokenKind = 6 Tlparen TokenKind = 7 Trparen TokenKind = 8 Tmul TokenKind = 9 TmulAssign TokenKind = 10 Tplus TokenKind = 11 Tinc TokenKind = 12 TaddAssign TokenKind = 13 Tcomma TokenKind = 14 Tminus TokenKind = 15 Tdec TokenKind = 16 TsubAssign TokenKind = 17 Tdiv TokenKind = 18 TdivAssign TokenKind = 19 Tcolon TokenKind = 20 Tsemicolon TokenKind = 21 Tless TokenKind = 22 Tlesse TokenKind = 23 Tassign TokenKind = 24 Tequal TokenKind = 25 Tgreat TokenKind = 26 Tgreate TokenKind = 27 Tlbracket TokenKind = 28 Trbracket TokenKind = 29 Teof TokenKind = 30 // ........... word symbols ................................. // Tbreak TokenKind = 31 Tcase TokenKind = 32 Tconst TokenKind = 33 Tcontinue TokenKind = 34 Tdefault TokenKind = 35 Tdo TokenKind = 36 Telse TokenKind = 37 Tfor TokenKind = 38 Tif TokenKind = 39 Tint TokenKind = 40 Treturn TokenKind = 41 Tswitch TokenKind = 42 Tvoid TokenKind = 43 Twhile TokenKind = 44 Tlbrace TokenKind = 45 Tor TokenKind = 46 Trbrace TokenKind = 47 )
Click to show internal directories.
Click to hide internal directories.