Scanner class

Constructors

Scanner(String source, {LoxReader? reader, List<String> loadedFiles = const []})

Properties

current ↔ int
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
keywords → Map<String, TokenType>
final
line ↔ int
getter/setter pair
loadedFiles ↔ List<String>
getter/setter pair
reader ↔ LoxReader?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source ↔ String
getter/setter pair
sourceFile ↔ String
getter/setter pair
start ↔ int
getter/setter pair
tokens → List<Token>
final

Methods

addToken(TokenType type) → void
addToken1(TokenType type, Object? literal) → void
addToken2(TokenType type, String lexeme) → void
advance() → String
allow() → bool
identifier() → Future<void>
isAlpha(String c) → bool
isAlphaNumeric(String c) → bool
isAtEnd() → bool
isDigit(String c, bool isHex) → bool
match(String expected) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
number(String c) → void
peek() → String
peekNext() → String
scanToken() → Future<void>
scanTokens({bool isBase = true}) → Future<List<Token>>
string(String c) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited