Documentation ¶
Index ¶
Constants ¶
View Source
const ( ILLEGAL = "ILLEGAL" EOF = "EOF" //Identifiers + Literals IDENT = "IDENT" //add, foobar, x, y, ... INT = "INT" //123456789 //Operators ASSIGN = "=" PLUS = "+" MINUS = "-" ASTERISK = "*" SLASH = "/" PERCENT = "%" GT = ">" GTE = ">=" LT = "<" LTE = "<=" AND = "&" BAND = "&&" OR = "|" BOR = "||" EQ = "==" NE = "!=" BANG = "!" DPLUS = "++" //Delimiters COMMA = "," SIMICOLON = ";" COLON = ":" LPAREN = "(" RPAREN = ")" LBRACE = "{" RBRACE = "}" //Keywords FUNCTION = "FUNCTION" LET = "LET" IF = "IF" ELSE = "ELSE" SWITCH = "SWITCH" CASE = "CASE" DEFAULT = "DEFAULT" RETURN = "RETURN" TRUE = "TRUE" FALSE = "FALSE" FOR = "FOR" BREAK = "BREAK" )
Variables ¶
View Source
var ( //Allowed Identifier CharSet = AllowedIdentChars = []*unicode.RangeTable{unicode.Letter, unicode.Number, rangetable.New('.', '_')} )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.