DigitParser class

The DigitParser parses successfully if it can consume one of the characters from the range 0..9.

Returns the consumed character.

final d = digit().skipMany1.capture.map(int.parse);
Inheritance
Available Extensions

Constructors

DigitParser()

Properties

hashCode int
The hash code for this object.
no setterinherited
label String
getter/setter pairinherited
quote bool
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fastParse(ParseState state) bool
Parses input data passively, with minimal consumption of system resources during parsing.
override
fastParseMany(ParseState state) bool
override
fastParseMany1(ParseState state) bool
override
fastParseSepBy(ParseState state, Parser sep) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(ParseState state) Tuple1<int>?
Parses input data actively and produces the result.
override
parseMany(ParseState state) Tuple1<List<int>>?
override
parseMany1(ParseState state) Tuple1<List<int>>?
override
parseSepBy(ParseState state, Parser sep) Tuple1<List<int>>?
inherited
parseSkipMany(ParseState state) Tuple1?
inherited
parseSkipMany1(ParseState state) Tuple1?
inherited
toString() String
A string representation of this object.
inherited

Operators

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