Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tree-sitter/tree-sitter-ocaml
OCaml grammar for tree-sitter
https://github.com/tree-sitter/tree-sitter-ocaml
ocaml parser tree-sitter
Last synced: about 1 month ago
JSON representation
OCaml grammar for tree-sitter
- Host: GitHub
- URL: https://github.com/tree-sitter/tree-sitter-ocaml
- Owner: tree-sitter
- License: mit
- Created: 2018-02-23T22:43:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-22T17:56:18.000Z (about 2 months ago)
- Last Synced: 2024-09-26T20:51:24.433Z (about 1 month ago)
- Topics: ocaml, parser, tree-sitter
- Language: JavaScript
- Homepage:
- Size: 93.2 MB
- Stars: 75
- Watchers: 11
- Forks: 23
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tree-sitter - OCaml
README
# tree-sitter-ocaml
[![CI][ci]](https://github.com/tree-sitter/tree-sitter-ocaml/actions/workflows/ci.yml)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-ocaml)
[![crates][crates]](https://crates.io/crates/tree-sitter-ocaml)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-ocaml/)OCaml grammar for [tree-sitter][].
This module defines grammars for implementations (`.ml`) interfaces (`.mli`) and types. Require them as follows:
```js
require('tree-sitter-ocaml').ocaml;
require('tree-sitter-ocaml').ocaml_interface;
require('tree-sitter-ocaml').ocaml_type;
```References
- [OCaml language reference](https://ocaml.org/manual/language.html)
- [OCaml language extensions](https://ocaml.org/manual/extn.html)
- [OCaml lexer](https://github.com/ocaml/ocaml/blob/trunk/parsing/lexer.mll)
- [OCaml parser](https://github.com/ocaml/ocaml/blob/trunk/parsing/parser.mly)[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-ocaml/ci.yml?logo=github&label=CI
[npm]: https://img.shields.io/npm/v/tree-sitter-ocaml?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-ocaml?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-ocaml?logo=pypi&logoColor=white&label=PyPI
[tree-sitter]: https://tree-sitter.github.io/tree-sitter/