Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type TokenType ¶
type TokenType int
const ( EOF TokenType = iota // End of file ILLEGAL // Illegal token WHITESPACE // Whitespace IDENT // Identifier ASSIGN // Assignment operator (=) LIT_INT // Integer literal LIT_FLOAT // Float literal LIT_DEGREE // Degree literal LIT_STRING // String literal OP_PLUS // Infix addition (+) OP_MINUS // Infix subtraction (-) OP_STAR // Infix multiplication (*) OP_SLASH // Infix division (/) OP_PERCENT // Infix modulo (%) OP_ROOT // Root operator (√) OP_SHL // Left shift (<<) OP_SHR // Right shift (>>) OP_POW // Exponentiation (**) LPAREN // ( RPAREN // ) )
Click to show internal directories.
Click to hide internal directories.