TextParser class

A parser to parse a segment of source text.

Implementers

Constructors

TextParser(String source)

Properties

hashCode int
The hash code for this object.
no setterinherited
isDone bool
Whether the read position has reached the end of source.
no setter
length int
The length of source.
no setter
pos int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
final

Methods

advance() → void
Moves the read position one character ahead.
advanceBy(int length) → void
Moves the read position for length characters. length can be negative.
charAt([int? position]) int
moveThroughWhitespace({bool multiLine = false}) int
Walk the parser forward through any whitespace.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
substring(int start, [int? end]) String
Substrings the source and returns a String.
toString() String
A string representation of this object.
inherited

Operators

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