class Cryox::Scanner

Defined in:

cryox/scanner.cr

Constant Summary

KEYWORDS = {and: TokenType::AND, class: TokenType::CLASS, else: TokenType::ELSE, false: TokenType::FALSE, for: TokenType::FOR, fun: TokenType::FUN, if: TokenType::IF, nil: TokenType::NIL, or: TokenType::OR, print: TokenType::PRINT, return: TokenType::RETURN, super: TokenType::SUPER, this: TokenType::THIS, true: TokenType::TRUE, var: TokenType::VAR, while: TokenType::WHILE}

Constructors

Instance Method Summary

Constructor Detail

def self.new(src : String) #

[View source]

Instance Method Detail

def scan_tokens : Array(Token) #

[View source]