parse library

Classes

AndParser
The AndParser parser is a silent positive lookahead parser. It invokes p and succeeds only if p succeeds.
AroundParser<E1, E2>
The AroundParser parser invokes sequentially p1, p2 and p3 and parses successfully if all parsers succeed.
Ascii
AsciiMatcher
AtEndParser
BetweenParser<E>
The BetweenParser parser invokes sequentially p1, p2 and p3 and parses successfully if all parsers succeed.
CaptureParser
The CaptureParser parser invokes passively p and parses succefully if p succeed.
CharParser
The CharParser parses successfully if it can consume the character c.
Chars16Parser
The Chars16Parser parses successfully if it can consume one of spefied characters.
Choice2Parser<E>
The Choice2Parser parser invokes p1or p2 until one of them parses successfully. It will be parsed successfully if one of the parsers succeeds.
Choice3Parser<E>
The Choice3Parser parser invokes p1, p2 or p3 until one of them parses successfully. It will be parsed successfully if one of the parsers succeeds.
Choice4Parser<E>
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.
Choice5Parser<E>
The Choice5Parser parser invokes p1, p2, p3, p4 or p5 until one of them parses successfully. It will be parsed successfully if one of the parsers succeeds.
Choice6Parser<E>
The Choice6Parser parser invokes p1, p2, p3, p4, p5 or p6 until one of them parses successfully. It will be parsed successfully if one of the parsers succeeds.
Choice7Parser<E>
The Choice7Parser parser invokes p1, p2, p3, p4, p5, p6 or p7 until one of them parses successfully. It will be parsed successfully if one of the parsers succeeds.
ChoiceParser<E>
The ChoiceParser parser iterates over and invokes the parsers from ps until one of them parses successfully.
DigitParser
The DigitParser parses successfully if it can consume one of the characters from the range 0..9.
DummyParser<E>
The DummyParser is parser that doesn't parse anything and is used as a temporary stub when defining recursive parsers.
DummyParseState
ExpectedError
ExpectedParser<E>
The ExpectedParser parser invokes p and parses succefully if p succeed.
FailParser<E>
The FailParser parser invokes the method state.fail (err, state.pos) and does not succeed.
IntMatcher
IsAlnumMatcher
IsAlphaMatcher
IsAsciiMatcher
IsDigitMatcher
IsLowerMatcher
IsUpperMatcher
LeftParser<E>
The LeftParser parser invokes sequentially p1 and p2 and parses successfully if all parsers succeed.
Many1Parser<E>
ManyParser<E>
MapParser<I, O>
The MapParser invokes p and parses successfully if p succeed.
Mapper<I, O>
MapperParser<I, O>
The MapperParser invokes p and parses successfully if p succeed.
Matcher<E>
MatchUint16Parser<E>
NotParser
The NotParser parser is a silent negative lookahead parser. It passilvely invokes p and succeeds only if p does not parse successfully.
OptParser<E>
The OptParser invokes p and parses successfully.
OrFailParser<E>
The OrFailParser parser invokes p and parses successfully if p succeed.
ParseError
Parser<E>
ParseState
Range
RangesMatcher
RefParser<E>
The RefParser invokes p and parses successfully if p succeed.
RepParser<E>
RepParserBase<E>
RightParser<E>
The RightParser parser invokes sequentially p1 and p2 and parses successfully if all parsers succeed.
SepByParser<E>
Seq2Parser
Seq3Parser
Seq4Parser
Seq5Parser
Seq6Parser
Seq7Parser
SeqParser
StringParseState
StrParser
The StrParser parses successfully if it can consume the string s.
TokChar16Parser<E>
TokParser<E>
TokStrParser<E>
Tuple1<T0>
Tuple2<T0, T1>
Tuple2Parser<E1, E2>
The Tuple2Parser parser invokes sequentially p1 and p2 and parses successfully if all parsers succeed.
Tuple3<T0, T1, T2>
Tuple3Parser<E1, E2, E3>
The Tuple3Parser parser invokes sequentially p1, p2 and p3 and parses successfully if all parsers succeed.
Tuple4<T0, T1, T2, T3>
Tuple4Parser<E1, E2, E3, E4>
The Tuple4Parser parser invokes sequentially p1, p2, p3 and p4 and parses successfully if all parsers succeed.
Tuple5<T0, T1, T2, T3, T4>
Tuple5Parser<E1, E2, E3, E4, E5>
The Tuple5Parser parser invokes sequentially p1, p2, p3, p4 and p5 and parses successfully if all parsers succeed.
Tuple6<T0, T1, T2, T3, T4, T5>
Tuple6Parser<E1, E2, E3, E4, E5, E6>
The Tuple6Parser parser invokes sequentially p1, p2, p3, p4, p5 and p6 and parses successfully if all parsers succeed.
Tuple7<T0, T1, T2, T3, T4, T5, T6>
Tuple7Parser<E1, E2, E3, E4, E5, E6, E7>
The Tuple7Parser parser invokes sequentially p1, p2, p3, p4, p5, p6 and p7 and parses successfully if all parsers succeed.
UnexpectedError
ValParser<E>
The ValParser invokes passively p and parses successfully if p succeed.

Constants

inline → const pragma

Functions

and(Parser p) AndParser
Creates the AndParser parser.
around<E1, E2>(Parser<E1> p1, Parser p2, Parser<E2> p3) AroundParser<E1, E2>
Creates the AroundParser parser.
asciiMatcher(int mask) AsciiMatcher
atEnd() AtEndParser
between<E>(Parser p1, Parser<E> p2, Parser p3) BetweenParser<E>
Creates the BetweenParser parser.
capture(Parser p) CaptureParser
Creates the CaptureParser parser.
char(int c) CharParser
Creates the CharParser parser.
chars16(List<int> cs) Chars16Parser
Creates the Chars16Parser parser.
choice<E>(List<Parser<E>> ps) ChoiceParser<E>
Creates the ChoiceParser parser.
choice2<E>(Parser<E> p1, Parser<E> p2) Choice2Parser<E>
Creates the Choice2Parser parser.
choice3<E>(Parser<E> p1, Parser<E> p2, Parser<E> p3) Choice3Parser<E>
Creates the Choice3Parser parser.
choice4<E>(Parser<E> p1, Parser<E> p2, Parser<E> p3, Parser<E> p4) Choice4Parser<E>
Creates the Choice4Parser parser.
choice5<E>(Parser<E> p1, Parser<E> p2, Parser<E> p3, Parser<E> p4, Parser<E> p5) Choice5Parser<E>
Creates the Choice5Parser parser.
choice6<E>(Parser<E> p1, Parser<E> p2, Parser<E> p3, Parser<E> p4, Parser<E> p5, Parser<E> p6) Choice6Parser<E>
Creates the Choice6Parser parser.
choice7<E>(Parser<E> p1, Parser<E> p2, Parser<E> p3, Parser<E> p4, Parser<E> p5, Parser<E> p6, Parser<E> p7) Choice7Parser<E>
Creates the Choice7Parser parser.
digit() DigitParser
Creates the DigitParser parser.
expected<E>(Parser<E> p, String label) ExpectedParser<E>
Creates the ExpectedParser parser.
expectedError(String name) ExpectedError
fail<E>(dynamic err) FailParser<E>
Creates the FailParser parser.
intMatcher(List<int> values) IntMatcher
isAlnumMatcher() IsAlnumMatcher
isAlphaMatcher() IsAlphaMatcher
isAsciiMatcher() IsAsciiMatcher
isDigitMatcher() IsDigitMatcher
isLowerMatcher() IsLowerMatcher
isUpperMatcher() IsUpperMatcher
left<E>(Parser<E> p1, Parser p2) LeftParser<E>
Creates the LeftParser parser.
many<E>(Parser<E> p) ManyParser<E>
many1<E>(Parser<E> p) Many1Parser<E>
map<I, O>(Parser<I> p, O f(I)) MapParser<I, O>
Creates the MapParser parser.
mapper<I, O>(Parser<I> p, Mapper<I, O> m) MapperParser<I, O>
Creates the MapperParser parser.
matchUint16<E>(Matcher<int> m, E val, [Endian endian = Endian.big]) MatchUint16Parser<E>
not(Parser p) NotParser
Creates the NotParser parser.
opt<E>(Parser<E> p) OptParser<E>
Creates the OptParser parser.
orFail<E>(Parser<E> p, dynamic err) OrFailParser<E>
Creates the OrFailParser parser.
rangesMatcher(List<Range> ranges) RangesMatcher
ref<E>() RefParser<E>
Creates the RefParser parser.
rep<E>(Parser<E> p, int min, [int? max]) RepParser<E>
Creates the RightParser parser.
sepBy<E>(Parser<E> p, Parser sep) SepByParser<E>
seq(List<Parser> ps) SeqParser
seq2(Parser p1, Parser p2) Seq2Parser
seq3(Parser p1, Parser p2, Parser p3) Seq3Parser
seq4(Parser p1, Parser p2, Parser p3, Parser p4) Seq4Parser
seq5(Parser p1, Parser p2, Parser p3, Parser p4, Parser p5) Seq5Parser
seq6(Parser p1, Parser p2, Parser p3, Parser p4, Parser p5, Parser p6) Seq6Parser
seq7(Parser p1, Parser p2, Parser p3, Parser p4, Parser p5, Parser p6, Parser p7) Seq7Parser
str<E>(String s) StrParser
Creates the StrParser parser.
tok<E>(Parser p, String label, E val, Parser ws) TokParser<E>
tokChar16<E>(int c, String label, E val, Parser ws) TokChar16Parser<E>
tokStr<E>(String s, String label, E val, Parser ws) TokStrParser<E>
tuple2<E1, E2>(Parser<E1> p1, Parser<E2> p2) Tuple2Parser<E1, E2>
Creates the Tuple2Parser parser.
tuple3<E1, E2, E3>(Parser<E1> p1, Parser<E2> p2, Parser<E3> p3) Tuple3Parser<E1, E2, E3>
Creates the Tuple3Parser parser.
tuple4<E1, E2, E3, E4>(Parser<E1> p1, Parser<E2> p2, Parser<E3> p3, Parser<E4> p4) Tuple4Parser<E1, E2, E3, E4>
Creates the Tuple4Parser parser.
tuple5<E1, E2, E3, E4, E5>(Parser<E1> p1, Parser<E2> p2, Parser<E3> p3, Parser<E4> p4, Parser<E5> p5) Tuple5Parser<E1, E2, E3, E4, E5>
Creates the Tuple5Parser parser.
tuple6<E1, E2, E3, E4, E5, E6>(Parser<E1> p1, Parser<E2> p2, Parser<E3> p3, Parser<E4> p4, Parser<E5> p5, Parser<E6> p6) Tuple6Parser<E1, E2, E3, E4, E5, E6>
Creates the Tuple6Parser parser.
tuple7<E1, E2, E3, E4, E5, E6, E7>(Parser<E1> p1, Parser<E2> p2, Parser<E3> p3, Parser<E4> p4, Parser<E5> p5, Parser<E6> p6, Parser<E7> p7) Tuple7Parser<E1, E2, E3, E4, E5, E6, E7>
Creates the Tuple7Parser parser.
unexpectedError(String name) UnexpectedError
val<E>(Parser p, E val) ValParser<E>
Creates the ValParser parser.