class CPU::Scanner
- CPU::Scanner
- Reference
- Object
Overview
The scanner for parsing
Defined in:
cr6502/parser/scanner.crConstructors
Instance Method Summary
- #add_token(type : TokenType, literal : Int32 | Nil = nil)
- #advance
- #binary
- #hex
- #identifier
- #is_alpha(c : Char)
- #is_alpha_numeric(c : Char)
- #is_at_end
- #labels : Array(Tuple(String, UInt8 | UInt16, Bool))
- #labels=(labels : Array(Tuple(String, UInt8 | UInt16, Bool)))
- #match(expected : Char)
- #number
- #peek
- #peek_next
- #scan_token(just_labels : Bool)
- #scan_tokens(just_labels : Bool = false)
- #tokens : Array(Token)
- #tokens=(tokens : Array(Token))
Constructor Detail
def self.new(source : String, line : Int32, labels : Array(Tuple(String, UInt16 | UInt8, Bool)))
#