Choice4Parser<E> class
The Choice4Parser parser invokes p1, p2, p3 or p4 until one of them parses successfully. It will be parsed successfully if one of the parsers succeeds.
Returns the result of parsing one of the parsers.
final p = choice4(p1, p2, p3, p4);
- Inheritance
- Available Extensions
Constructors
-
Choice4Parser(Parser<
E> p1, Parser<E> p2, Parser<E> p3, Parser<E> p4)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- label ↔ String
-
getter/setter pairinherited
-
p1
→ Parser<
E> -
final
-
p2
→ Parser<
E> -
final
-
p3
→ Parser<
E> -
final
-
p4
→ Parser<
E> -
final
- 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 -
inherited
-
fastParseMany1(
ParseState state) → bool -
inherited
-
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< E> ? -
Parses input data actively and produces the result.
override
-
parseMany(
ParseState state) → Tuple1< List< ?E> > -
inherited
-
parseMany1(
ParseState state) → Tuple1< List< ?E> > -
inherited
-
parseSepBy(
ParseState state, Parser sep) → Tuple1< List< ?E> > -
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