Convenience functions for
Parser.Advanced.
Everything here works just like in the
Parser.Extra module, except that String
arguments become Token arguments, and you need to provide a Problem for
certain scenarios.
Just like Parser.Extra.negativeLookAhead
except you provide a Token instead of a String.
That way you can specify your custom type of problem
for when the given parser would succeed.
Just like Parser.Extra.followedBy.
Just like Parser.Extra.committed.
Flipped versions of andThen
with 1 to 5 parsers and callbacks with 1 to 5 input parameters.
(In other functional languages, the flipped
version of andThen is often called "bind",
hence the names here.)
Just like Parser.Extra.bind.
Just like Parser.Extra.bind2.
Just like Parser.Extra.bind3.
Just like Parser.Extra.bind4.
Just like Parser.Extra.bind5.
These are low-level functions which are used under the hood to implement some of the other parsers of this module.
Maybe they can be useful to you, too?
Result of Parser.Advanced.run.
The type alias simplifies the following function signatures a little bit.
Just like Parser.Extra.getParserResult.
Just like Parser.Extra.getParserOutcome.
Just like
Parser.Extra.lookAhead.