This is only required by the developer to re-generate the lexer/parser based on a grammar file.


Download antlr4:

cd /usr/local/lib
sudo curl -O

Antlr API reference:

Upgrading the Antlr version

  • Download latest jar file (See above)

  • Install latest python packages:

    python3 -m pip install -U antlr4-python3-runtime speedy-antlr-tool mypy
  • Download C++ runtime source distribution from

    • Extract zip

    • Update: <zip file>/runtime/src to systemrdl/parser/ext/antlr4-cpp-runtime

  • Update systemrdl/parser/ to point to the latest antlr jar

  • Run systemrdl/parser/

  • Increment systemrdl minor version

  • Update antlr runtime version pins in

  • Run unit tests

  • Publish release!