pithub/elm-parser-bug-workaround/1.0.0

Parser.Advanced.Workaround

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.


Bug Workarounds


See the Parser.Workaround documentation for a description of the problem and guidelines for the use of the workaround parsers.


lineCommentBefore : Token x -> Parser c x ()

Just like Parser.Advanced.lineComment except it consistently stops before the linefeed character.

lineCommentAfter : Token x -> Parser c x ()

Just like Parser.Advanced.lineComment except it consistently stops after the linefeed character.

multiCommentBefore : Token x -> Token x -> Nestable -> Parser c x ()

Just like Parser.Advanced.multiComment except it consistently stops before the last closing token.

multiCommentAfter : Token x -> Token x -> Nestable -> Parser c x ()

Just like Parser.Advanced.multiComment except it consistently stops after the last closing token.

chompUntilBefore : Token x -> Parser c x ()

Just like Parser.Advanced.chompUntil except it consistently stops before the token.

chompUntilAfter : Token x -> Parser c x ()

Just like Parser.Advanced.chompUntil except it consistently stops after the token.

chompUntilEndOrBefore : Token x -> Parser c x ()

Just like Parser.Advanced.chompUntilEndOr except it consistently stops before the token (if it is found).

chompUntilEndOrAfter : Token x -> Parser c x ()

Just like Parser.Advanced.chompUntilEndOr except it consistently stops after the token (if it is found).