class

CrLox::Scanner

Inherits CrLox::Helper < Reference < Object

Constructors

Instance methods

add_token(type : TokenType, literal : LiteralType | Nil)
Source
add_token(type : TokenType)
Source
advance
Source
at_end?
Source
end_of_comment?
Source
get_digits
Source
had_error
Source
increment_newline_if_end
Source
log_error(message : String)
Source
match?(expected : Char) : Bool
Source
parse_comment_block

Comment block - any occurrence of '/* or */'

Source
parse_digit_or_alpha_chars(char : Char)
Source
parse_identifier
Source
parse_number
Source
parse_slash
Source
parse_string
Source
peek
Source
peek_next
Source
scan_token
Source
scan_tokens(source : String) : Array(Token)
Source