Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Is this a good project skeleton for a LR(1) parser? https://github.com/smolkaj/nice-parser/ Maybe I should have two projects, one for parsing and the rest of the logic?
This seems better than its fork : https://github.com/roguh/ocaml-parsing which doesn't even compile right now.
There are some instructions for installation using opam here: https://github.com/ocaml-multicore/multicore-opam
Do you specifically need an LR(1) parser? If you just need to do some simple parsing, a parser combinator library like Angstrom works fine and is completely defined in OCaml code: https://github.com/inhabitedtype/angstrom
Related posts
- Anyone have suggestions on how to parse recursive grammar elements with a parser generator?
- Parser Combinators in Haskell
- Lezer: A Parsing System for CodeMirror, Inspired by Tree-Sitter
- Show HN: Matcheroni, a tiny C++20 header library for building lexers/parsers
- Show HN: Monch, a tasty TypeScript parser-combinators library