OCaml grammar for tree-sitter
  • JavaScript 51.3%
  • C 15.3%
  • Tree-sitter Query 5.9%
  • Rust 5.3%
  • OCaml 4.9%
  • Other 17.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-07 16:14:07 +01:00
.github Fix swift test 2026-08-01 13:12:02 +02:00
bindings 0.26.0 2026-09-13 14:52:07 +02:00
common Avoid stack overflow for nested comments (#154) 2026-09-19 14:50:42 +02:00
examples Add OxCaml example repositories (#151) 2026-09-13 14:27:02 +02:00
grammars Add OxCaml example repositories (#151) 2026-09-13 14:27:02 +02:00
queries Fix highlighting of unboxed types (#157) 2026-11-07 16:14:07 +01:00
test Fix highlighting of unboxed types (#157) 2026-11-07 16:14:07 +01:00
.clang-format Reformat and reorder C/C++ code 2023-07-08 02:33:57 +02:00
.editorconfig Update bindings and dependencies (#129) 2026-03-21 21:49:36 +01:00
.gitattributes Revert binding changes (#106) 2025-01-05 13:20:49 +01:00
.gitignore Update bindings (#111) 2025-03-04 01:05:16 +01:00
.gitmodules Add OxCaml example repositories (#151) 2026-09-13 14:27:02 +02:00
binding.gyp build: update bindings 2024-09-02 20:18:40 -04:00
Cargo.lock 0.26.0 2026-09-13 14:52:07 +02:00
Cargo.toml 0.26.0 2026-09-13 14:52:07 +02:00
CMakeLists.txt 0.26.0 2026-09-13 14:52:07 +02:00
eslint.config.mjs Add eslint config 2025-03-07 05:15:32 +01:00
go.mod 0.26.0 2026-09-13 14:52:07 +02:00
go.sum 0.26.0 2026-09-13 14:52:07 +02:00
LICENSE Add license. Closes #44. 2020-09-14 23:58:47 +02:00
Makefile Upgrade to tree-sitter 0.25 (#123) 2025-05-29 17:18:19 +02:00
package-lock.json 0.26.0 2026-09-13 14:52:07 +02:00
package.json 0.26.0 2026-09-13 14:52:07 +02:00
Package.resolved 0.26.0 2026-09-13 14:52:07 +02:00
Package.swift Update bindings and dependencies (#129) 2026-03-21 21:49:36 +01:00
pyproject.toml 0.26.0 2026-09-13 14:52:07 +02:00
README.md build: update bindings 2024-11-10 23:16:34 -05:00
setup.py Update bindings and dependencies (#129) 2026-03-21 21:49:36 +01:00
tree-sitter.json 0.26.0 2026-09-13 14:52:07 +02:00

tree-sitter-ocaml

CI discord matrix npm crates pypi

OCaml grammar for tree-sitter.

This module defines grammars for implementations (.ml) interfaces (.mli) and types. Require them as follows:

require('tree-sitter-ocaml').ocaml;
require('tree-sitter-ocaml').ocaml_interface;
require('tree-sitter-ocaml').ocaml_type;

References