module Token
Defined in:
scanner/token.crConstant Summary
-
RESERVED =
{"and" => Type::And, "class" => Type::Class, "else" => Type::Else, "false" => Type::False, "fun" => Type::Fun, "for" => Type::For, "if" => Type::If, "nil" => Type::Nil, "or" => Type::Or, "print" => Type::Print, "return" => Type::Return, "super" => Type::Super, "this" => Type::This, "true" => Type::True, "var" => Type::Var, "while" => Type::While} of String => Type
-
SYNC_TOKENS =
[Type::Class, Type::Return, Type::Fun, Type::Var, Type::While, Type::For, Type::If, Type::Print]
-
Tokens, which can be a starting point after we ecounter a syntax error