Crates.io | tree-sitter-erlang |
lib.rs | tree-sitter-erlang |
version | 0.9.0 |
source | src |
created_at | 2022-10-20 11:58:38.455671 |
updated_at | 2024-10-21 14:51:14.044308 |
description | erlang grammar for the tree-sitter parsing library |
homepage | |
repository | https://github.com/WhatsApp/tree-sitter-erlang |
max_upload_size | |
id | 692400 |
size | 1,791,614 |
This represents tree-sitter grammar used for the Erlang language in the ELP project.
It started as a direct clone of https://github.com/AbstractMachinesLab/tree-sitter-erlang at 7b436e1ca50f0002f6765a9a2a00f6156b2cc881, but was later heavily modified for completeness.
Install the required toolchain with
make deps
Edit the grammar.js
file and re-generate the code with:
make gen
Useful test command, parses foo.erl
and opens a browser window to
show the process, with pretty pictures of the generated AST.
npm run parse -- --debug-graph testdata/foo.erl
tree-sitter-erlang is Apache licensed.