Documentation
¶
Overview ¶
Package token contains the list of token-types we accept/recognize.
Index ¶
Constants ¶
View Source
const ( ILLEGAL = "ILLEGAL" EOF = "EOF" IDENT = "IDENT" LABEL = "LABEL" INT = "INT" STRING = "STRING" COMMA = "COMMA" // math ADD = "ADD" AND = "AND" DEC = "DEC" DIV = "DIV" INC = "INC" MUL = "MUL" OR = "OR" SUB = "SUB" XOR = "XOR" // control-flow CALL = "CALL" JMP = "JMP" JMPNZ = "JMPNZ" JMPZ = "JMPZ" RET = "RET" // stack PUSH = "PUSH" POP = "POP" // types IS_STRING = "IS_STRING" IS_INTEGER = "IS_INTEGER" STRING2INT = "STRING2INT" INT2STRING = "INT2STRING" // compare CMP = "CMP" // store STORE = "STORE" // print PRINT_INT = "PRINT_INT" PRINT_STR = "PRINT_STR" // memory PEEK = "PEEK" POKE = "POKE" // Misc CONCAT = "CONCAT" DATA = "DATA" DB = "DB" EXIT = "EXIT" MEMCPY = "MEMCPY" NOP = "NOP" RANDOM = "RANDOM" SYSTEM = "SYSTEM" TRAP = "TRAP" )
pre-defined Type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.