C/OCaml parsers for multiple programming languages, generated by ocaml-tree-sitter from tree-sitter grammars.
Here are some crude instructions for setting up a project using these parsers:
- Install the tree-sitter
runtime library: Clone the repo, then
make && sudo make install
. - Install the runtime libraries provided by
ocaml-tree-sitter:
Clone the repo. Install the OCaml dependencies with
opam install --deps-only -y .
, thenmake && make install
. - Copy the desired source subtrees (e.g.
ruby/
) into to your dune project. Adding the whole ocaml-tree-sitter-lang tree from a tarball or as a git submodule should work too.