Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ILLEGAL - Unknown token ILLEGAL = "ILLEGAL" // EOF - End of file EOF = "EOF" // IDENT - Identifier (variable/function name) IDENT = "IDENT" // STRLIT - String literal STRLIT = "STRLIT" // INTLIT - Integer literal INTLIT = "INTLIT" // FLTLIT - Float literal FLTLIT = "FLTLIT" ASSIGN = "=" ADD = "+" SUB = "-" MUL = "*" DIV = "/" ADDASSIGN = "+=" SUBASSIGN = "-=" MULASSIGN = "*=" DIVASSIGN = "/=" BSL = "<<" BSR = ">>" BWOR = "|" BWAND = "&" BWNOT = "^" BWOASSIGN = "|=" BWAASSIGN = "&=" BWNASSIGN = "~=" DOT = "." LT = "<" GT = ">" LE = "<=" GE = ">=" EQ = "==" NE = "!=" LOR = "||" LAND = "&&" BANG = "!" COMMA = "," SEMICOL = ";" COLON = ":" LPAREN = "(" RPAREN = ")" LBRACE = "{" RBRACE = "}" LSBRKT = "[" RSBRKT = "]" FUNCTION = "fn" LET = "let" RETURN = "return" RETSIG = "->" IF = "if" ELSE = "else" WHILE = "while" FOR = "for" BREAK = "break" IN = "in" LOOP = "loop" STRING = "str" INT = "int" FLOAT = "flt" CLASS = "class" BOOL = "bool" TRUE = "true" FALSE = "false" )
Types of tokens
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.