Re:Multicore OCaml: September 2020
by johnisgood on Friday October 09, 2020 @05:59AM
(#24728385)
Might be outdated (or not), but this page has tons and tons of examples, incl. lookahead: http://pleac.sourceforge.net/pleac_ocaml/patternmatching.htm...
And the GitHub page of the aforementioned library: https://mmottl.github.io/pcre-ocaml/
I used the PCRE library, which has pretty much all the features you expect, and it is actively maintained. Note: the heavy lifting is done by C libraries.
https://opam.ocaml.org/packages/pcre/
If you want to see how I integrated it with the interpreter the code is here:
https://github.com/briangorman/reason-mal/blob/master/reader...