module Token

Defined in:

scanner/token.cr

Constant 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

Class Method Summary

Class Method Detail

def self.is_sync?(type) #

[View source]
def self.make(*args) #

[View source]
def self.reserved?(identifier) #

[View source]