GenericWhitespaceState class
A whitespace state ignores whitespace (such as blanks and tabs), and returns the tokenizer's next token. By default, all characters from 0 to 32 are whitespace.
- Implemented types
Constructors
- GenericWhitespaceState()
- Constructs a whitespace state with a default idea of what characters are, in fact, whitespace.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearWhitespaceChars(
) → void -
Clears definitions of whitespace characters.
override
-
nextToken(
IScanner scanner, ITokenizer? tokenizer) → Token -
Ignore whitespace (such as blanks and tabs), and return the tokenizer's next token.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setWhitespaceChars(
int fromSymbol, int toSymbol, bool enable) → void -
Establish the given characters as whitespace to ignore.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited