angstrom
angstrom copied to clipboard
Parser combinators built for speed and memory efficiency
Fixes https://github.com/inhabitedtype/angstrom/issues/217 h/t @talex5
I've run into problems with the `count` function, which lifts `'a` parsers to be `'a list` parsers, stack overflowing. This is because the current implementation uses a recursive build-up of...
# Feature `backtrack n` is a parser that rewinds the input by `n` bytes, or fails if not enough client-uncommitted bytes are available. It is sorted with the expert, undocumented...
I see that for recursive parser, like when parsing JSON, you provide the fix combinator. What about mutually recursive parsers, for example if I want to parse Java, there will...
As part of the Multicore OCaml work, I've been experimenting with porting Angstrom to use effects (https://github.com/talex5/angstrom/tree/effects). While converting the loops, I noticed that they are not tail-recursive, e.g. ```ocaml...
related to #209
See https://docs.ocaml.pro/html/[email protected]/Angstrom__/Input/index.html
Test json: `[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]` Test codes: ``` open Js_of_ocaml let _ = Js.export "XXX" (object%js method ppp s = let a = Angstrom.(parse_string RFC7159.json (Js.to_string s) ~consume:All) in Firebug.console##log Sys.backend_type; match...
When I tried to generate the documentation, I noticed that the build failed, so I fixed the build and updated to dune 2.0 at the same time.
It would be nice to have autogenerated documentation link available online and linked from the README. Currently there is https://docs.mirage.io/angstrom/Angstrom/index.html autogenerated by Mirage OS team. See also discussion on building...