Workarounds for a bug in
Parser.Advanced
.
Everything here works just like in the
Parser.Workaround
module, except that String
arguments become Token
arguments, and you need to provide a Problem
for
certain scenarios.
See the Parser.Workaround
documentation
for a description of the problem
and guidelines for the use of the workaround parsers.
lineCommentBefore : Parser.Advanced.Token x -> Parser.Advanced.Parser c x ()
Just like Parser.Advanced.lineComment
except it consistently stops before the linefeed character.
lineCommentAfter : Parser.Advanced.Token x -> Parser.Advanced.Parser c x ()
Just like Parser.Advanced.lineComment
except it consistently stops after the linefeed character.
multiCommentBefore : Parser.Advanced.Token x -> Parser.Advanced.Token x -> Parser.Advanced.Nestable -> Parser.Advanced.Parser c x ()
Just like Parser.Advanced.multiComment
except it consistently stops before the last closing token.
multiCommentAfter : Parser.Advanced.Token x -> Parser.Advanced.Token x -> Parser.Advanced.Nestable -> Parser.Advanced.Parser c x ()
Just like Parser.Advanced.multiComment
except it consistently stops after the last closing token.
chompUntilBefore : Parser.Advanced.Token x -> Parser.Advanced.Parser c x ()
Just like Parser.Advanced.chompUntil
except it consistently stops before the token.
chompUntilAfter : Parser.Advanced.Token x -> Parser.Advanced.Parser c x ()
Just like Parser.Advanced.chompUntil
except it consistently stops after the token.
chompUntilEndOrBefore : Parser.Advanced.Token x -> Parser.Advanced.Parser c x ()
Just like Parser.Advanced.chompUntilEndOr
except it consistently stops before the token (if it is found).
chompUntilEndOrAfter : Parser.Advanced.Token x -> Parser.Advanced.Parser c x ()
Just like Parser.Advanced.chompUntilEndOr
except it consistently stops after the token (if it is found).