Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TOKEN ¶
type TOKEN int
TOKEN - Custom type to hold value for token type
const ( ADD TOKEN = iota + 1 // EnumIndex = 1 SUBTRACT // EnumIndex = 2 DIVIDE // EnumIndex = 3 MULTIPLY // EnumIndex = 4 LPAREN // EnumIndex = 5 RPAREN // EnumIndex = 6 RBRACKET // EnumIndex = 7 LBRACKET // EnumIndex = 8 NUMBER // EnumIndex = 9 IDENTIFIER // EnumIndex = 10 TYPE // EnumIndex = 11 COMMENT // EnumIndex = 12 RSQUAREBRACKET // EnumIndex = 13 LSQUAREBRACKET // EnumIndex = 14 EQUAL // EnumIndex = 15 STOP // EnumIndex = 16 STRING // EnumIndex = 17 NONE // EnumIndex = 18 EXTENSION // EnumIndex = 19 COMMA // EnumIndex = 20 )
Declare related constants for each Token type starting with index 1
func FromString ¶
type Token ¶
func CreateToken ¶
Create Token object and return by pointer
Click to show internal directories.
Click to hide internal directories.