Documentation ¶
Index ¶
Constants ¶
View Source
const ( ILLEGAL = "ILLEGAL" // `ILLEGAL` signifies a token/character we don't know about EOF = "EOF" // `EOF` stands for "end of file", tells our parser later on, for stopping parsing // Identifiers + literals. IDENT = "IDENT" // add, foobar, x, y, ... INT = "INT" // 12321412 // Operators. ASSIGN = "=" PLUS = "+" MINUS = "-" BANG = "!" ASTERISK = "*" SLASH = "/" LT = "<" GT = ">" EQ = "==" NOT_EQ = "!=" // Delimiters. COMMA = "," SEMICOLON = ";" LPAREN = "(" RPAREN = ")" LBRACE = "{" RBRACE = "}" // keywords. FUNCTION = "fn" LET = "let" TRUE = "true" FALSE = "false" IF = "if" ELSE = "else" RETURN = "return" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.