Documentation
¶
Index ¶
Constants ¶
View Source
const STEP = "lexing"
Variables ¶
View Source
var Keywords = map[string]TokenType{ "if": TTKeywordIf, "goto": TTKeywordGoto, "call": TTKeywordCall, }
Functions ¶
Types ¶
type TokenContext ¶
type TokenType ¶
type TokenType string
const ( TTKeywordIf TokenType = "if" TTKeywordGoto TokenType = "goto" TTKeywordShownum TokenType = "shownum" TTKeywordShowchar TokenType = "showchar" TTKeywordInput TokenType = "input" TTKeywordCall TokenType = "call" TTIdentifier TokenType = "identifier" TTLiteralInt TokenType = "literal_int" TTLiteralStr TokenType = "literal_str" TTOpAssign TokenType = "op_assign" TTOpLt TokenType = "op_lt" TTOpGt TokenType = "op_gt" TTOpLte TokenType = "op_lte" TTOpGte TokenType = "op_gte" TTOpEq TokenType = "op_eq" TTOpNeq TokenType = "op_neq" TTOpAdd TokenType = "op_add" TTOpSub TokenType = "op_sub" TTOpMul TokenType = "op_mul" TTOpDiv TokenType = "op_div" TTOpMod TokenType = "op_mod" TTOpPow TokenType = "op_pow" TTLabel TokenType = "label" TTEndStmt TokenType = "end_stmt" )
Click to show internal directories.
Click to hide internal directories.