mparser
mparser copied to clipboard
A simple monadic parser combinator library for OCaml
The documentation for mparser's expression parser says > Adjacent prefix and postfix operators of the same precedence are not well-formed. For example, if (-) denotes prefix negation, --x is not...
Minor addition of infix operators inline with [angstrom](https://github.com/inhabitedtype/angstrom/blob/master/lib/angstrom.mli#L406-L412) (and Haskell style parser combinator libraries). I also reused the wording from angstrom for how these 4 functions work, I feel it...
This is not a bug, but I'm wondering how I can use MParser to write a parser for a C-like language? The main issue I'm running into is when defining...
it would be helpful to have a sample project using dune to play with
If you use something like `string ":\n"` in a parser, the line position is not updated if it matches. In many cases, the string or character to consume is literal...
Is it possible to track errors and then continue parsing? I'd prefer to present all errors up front at the same time, so if there's multiple things, a user can...
It exists as `opt` but `opt`'s documentation just says it's equivalent to `$`.