discontinuedPackage parser_builder has been discontinued and replaced by peg.

TakeWhileMN class

Parses while predicate satisfies the criteria and returns a substring of the parsed data if the criteria were satisfied m to n times.

Example:

TakeWhileMN(4, 4, CharClass('[0-9] | [a-f] | [A-F]'))
Inheritance

Constructors

TakeWhileMN(int m, int n, SemanticAction<bool> predicate)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
m → int
final
n → int
final
predicate → SemanticAction<bool>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addResultsToTemplateValues(Map<String, String> values, List<ParserResult?> results) → void
inherited
build(Context context, ParserResult? result) → String
override
getInputType() → String
inherited
getResultType() → String
inherited
getResultValue(String name) → String
inherited
isNullableResultType() → bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(String template, Map<String, String> values, [List<ParserResult?>? results]) → String
inherited
render2(bool condition, String template1, String template2, Map<String, String> values, [List<ParserResult?>? results]) → String
inherited
toString() → String
A string representation of this object.
inherited

Operators

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