Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct { NumErrors int // contains filtered or unexported fields }
type Token ¶
type Token int
const ( EOF Token = iota COMMENT SYMBOL INTEGER STRING ADD SUB MUL DIV AND OR XOR SEMI COMMA LPAREN RPAREN LBRACK RBRACK LBRACE RBRACE ADDROF UNOP COLON BYTEOP LNOT INV DISJ NEQ LT LE SHL SHR GT GE EQ ASSIGN COND CONJ CONST DO DECL ELSE END FOR HALT IF IE LEAVE LOOP MOD MODULE OBJECT PACKED RETURN STRUCT VAR WHILE )
func (Token) Precedence ¶
Click to show internal directories.
Click to hide internal directories.