@stordata/grammars
A collection of ANTLR grammars used at Stordata.
This project exists so that we can package the grammars (and various utilities) as a CommonJS module.
The antlr4
Javascript runtime is only available as an ES module at the time of writing.
Pre-requisites
Install antlr4-tools
Python package using pip
with something like
pip install antlr4-tools
And verify that the antlr4
command works. You might need to double-check that the command is in your path, pip installs
it in the ~/.local/bin
folder that is supposedly already handled by your Shell, but you know...
Building
Available NPM scripts are
npm test
npm run lint
npm run build