erlang-grammar • Bitbucket
An unofficial Erlang grammar adaptation in ANTLR v4. Typically, the only one on the web (well, just quite).
It is merely extracted from the official non-standard grammar from Erlang/OTP sources.
It is meant for students and people who work on Erlang's syntax.
- Erlang's erlc for preprocessing purposes.
Generate the grammar from Erlang.g4 with:
make clean all
Live debug with tree representation:
make debug …type Erlang forms… ^D
Check Erlang.g4 against the whole Erlang/OTP's