class Basic::C64::Scanner

Defined in:

basic-cr/c64/scanner.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String, line : Int32) #

[View source]

Instance Method Detail

def add_token(type : TokenType, literal : Int32 | Float64 | String | Nil = nil) #

[View source]
def advance #

[View source]
def identifier #

[View source]
def is_alpha(c : Char) #

[View source]
def is_alpha_numeric(c : Char) #

[View source]
def is_at_end #

[View source]
def match(expected : Char) #

[View source]
def number #

[View source]
def peek #

[View source]
def peek_next #

[View source]
def scan_token #

[View source]
def scan_tokens #

[View source]
def string #

[View source]
def tokens : Array(Token) #

[View source]
def tokens=(tokens : Array(Token)) #

[View source]