Documentation
¶
Index ¶
Constants ¶
View Source
const ( IDENTIFIER = "IDENTIFIER" INTEGER = "INTEGER" FLOAT = "FLOAT" TRUE = "TRUE" FALSE = "FALSE" STRING = "STRING" )
Identifiers and Literals
View Source
const ( PLUS = "+" MINUS = "-" ASTERISK = "*" SLASH = "/" BANG = "!" ASSIGN = "=" )
Arithmetic Operators
View Source
const ( EQ = "==" NOT_EQ = "!=" LT = "<" LT_EQ = "<=" GT = ">" GT_EQ = ">=" )
Comparison Operators
View Source
const ( AND = "&" OR = "|" )
Logical Operators
View Source
const ( L_PAREN = "(" R_PAREN = ")" L_BRACE = "{" R_BRACE = "}" L_BRACKET = "[" R_BRACKET = "]" COMMA = "," SEMICOLON = ";" COLON = ":" O_COMMENT = "/*" C_COMMENT = "*/" )
Parentheses, Braces and Special characters
View Source
const ( LET = "LET" IF = "IF" ELSE = "ELSE" FOR = "FOR" WHILE = "WHILE" BREAK = "break" CONTINUE = "continue" FUNCTION = "FUNCTION" RETURN = "RETURN" IN = "in" TRY = "TRY" CATCH = "CATCH" FINALLY = "FINALLY" )
Keywords
View Source
const ( EOF = "EOF" ILLEGAL = "ILLEGAL" )
Others
Variables ¶
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.