NOTE: the latest version is 1.1.0
Helper functions to develop/test your own parser using elm/parser.
Check if a parser is backtrackable or not.
import Parser run (Parser.keyword "import") "imp" |> Tuple.mapFirst (Result.mapError (\_ -> ())) --> (Err (), True) run (Parser.keyword "import") "import" --> (Ok (), False) run Parser.spaces " " --> (Ok (), False) run (Parser.backtrackable Parser.spaces) " " --> (Ok (), True)
Check if a parser is backtrackable or not.