Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
Erlang.g4
Makefile
README.md
check.sh

README.md

erlang-grammar • Bitbucket

Overview

An unofficial Erlang grammar adaptation in ANTLR v4. Typically, the only one on the web.

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.

Requierements

  • antlr4
  • Erlang's erlc for preprocessing purposes.

Usage

Generate the grammar from Erlang.g4 with:

:::bash
make clean all

Live debug with tree representation:

:::bash
make debug
…type Erlang forms…
^D

Check Erlang.g4 against the whole Erlang/OTP's .erl sources:

:::bash
make check
Something went wrong with that request. Please try again.