Documentation ¶
Overview ¶
Package token defines constants representing the lexical tokens of the Go programming language and basic operations on tokens (printing, predicates).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token int
Token is the set of lexical tokens of the Go programming language.
const ( ILLEGAL Token = iota EOF IDENT FUNCTION AT_KEYWORD HASH STRING DELIM NUMBER PERCENTAGE DIMENSION WHITE_SPACE // SPACE ADD // + SUB // - MUL // * QUO // / REM // % LPAREN // ( LBRACK // [ LBRACE // { COMMA // , PERIOD // . RPAREN // ) RBRACK // ] RBRACE // } SEMICOLON // ; COLON // : COMMENT )
The list of tokens.
Click to show internal directories.
Click to hide internal directories.