This crate provides OCaml and OCaml Interface grammars for the tree-sitter parsing library.
Typically, you will use the language_ocaml function to add this grammar to a tree-sitter Parser, and then use the parser to parse some code:
use Parser;
let code = r#"
module M = struct
let x = x
end
"#;
let mut parser = new;
parser
.set_language
.expect;
let parsed = parser.parse.unwrap;
let root = parsed.root_node;
assert!;