Scanner class

A scanner that reads a string of Unicode characters and emits Tokens.

This scanner is based on the guidelines provided by W3C on svg path, available at https://www.w3.org/TR/SVG11/paths.html.

Constructors

Scanner(String source)
Creates a Scanner that scans source.

Properties

hashCode int
The hash code for this object.
no setterinherited
isDone bool
checks if the end of string is reached.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek() Token?
Returns the next token without consuming it.
scan() Token?
Consumes and returns the next token.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

doubleZeros RegExp
TODO: update floatPattern to handle this specialCase
final
flagPattern RegExp
The RegExp pattern to match a boolean flag (1 or 0).
final
floatPattern RegExp
The RegExp pattern to match a valid float value. Allowed float values include starting with decimal (.3) and exponent notation (1.3e+4).
final
nonNegativeFloatPattern RegExp
The RegExp pattern to match a valid non-negative float value. Allowed float values include starting with decimal (.3) and exponent notation (1.3e+4).
final

Constants

COMMA → const int
LETTER_A → const int
LETTER_a → const int
LETTER_C → const int
LETTER_c → const int
LETTER_E → const int
LETTER_e → const int
LETTER_H → const int
LETTER_h → const int
LETTER_L → const int
LETTER_l → const int
LETTER_M → const int
LETTER_m → const int
LETTER_Q → const int
LETTER_q → const int
LETTER_S → const int
LETTER_s → const int
LETTER_T → const int
LETTER_t → const int
LETTER_V → const int
LETTER_v → const int
LETTER_Z → const int
LETTER_z → const int
MINUS_SIGN → const int
NUMBER_0 → const int
NUMBER_9 → const int
PERIOD → const int
PLUS_SIGN → const int
SP → const int