-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
* Update rust binding: use tree-sitter-language * Update swift binding: remove exclude * Update python binding: rename language functions * Update python binding: add README * Update README
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
# tree-sitter-ocaml | ||
|
||
[![CI][ci]](https://github.com/tree-sitter/tree-sitter-ocaml/actions/workflows/ci.yml) | ||
[![discord][discord]](https://discord.gg/w7nTvsVJhm) | ||
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org) | ||
[![crates][crates]](https://crates.io/crates/tree-sitter-ocaml) | ||
[![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](https://github.com/tree-sitter/tree-sitter). | ||
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').interface; | ||
require('tree-sitter-ocaml').type; | ||
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 | ||
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord | ||
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix | ||
[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/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.