Lexer class

Constructors

Lexer(String text, {String? filename, int currentLine = 1, int index = 0, required int? endOfFile})

Properties

current int
no setter
currentLine int
getter/setter pair
endOfFile int?
getter/setter pair
filename String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
index int
getter/setter pair
input List<int>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seenLinebreak bool
getter/setter pair
tokenLine int
getter/setter pair
tokenStart int
getter/setter pair

Methods

emitToken(int type, [String? value]) Token
emitValueToken(int type) Token
fail(String message) → void
getLineCount(int start, int end) int
next() int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scan() Token
scanComplexName(int x) Token
scanDecimalPart(int x) Token
scanExponentPart(int x) Token
scanHexNumber(int x) Token
scanHexSequence(int count) int
index must point to the first hex digit. It will be advanced to point AFTER the hex sequence (i.e. index += count).
scanName(int x) Token
scanNumber(int x) Token
scanRegexpBody(Token slash) Token
Scan a regular expression literal, where the opening token has already been scanned This is called directly from the parser. The opening token slash can be a "/" or a "/=" token
scanStringLiteral(int x) Token
toString() String
A string representation of this object.
inherited

Operators

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