tree-sitter-erlang

Crates.iotree-sitter-erlang
lib.rstree-sitter-erlang
version0.15.0
created_at2022-10-20 11:58:38.455671+00
updated_at2025-10-07 12:57:20.877738+00
descriptionerlang grammar for the tree-sitter parsing library
homepage
repositoryhttps://github.com/WhatsApp/tree-sitter-erlang
max_upload_size
id692400
size2,265,060
Meta Crates.io Bot (meta-cratesio-bot)

documentation

README

Tree Sitter Erlang

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.

Usage

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

License

tree-sitter-erlang is Apache licensed.

Commit count: 70

cargo fmt