My workspace containing code listings from the book "The Definitive ANTLR 4 Reference, 2nd Edition", by Terence Parr.
The code examples in the book are written in Java. However, Go and Python are also officially supported target languages. I wanted to write in Go and Python, so examples have been converted to these languages.
Install ANTLR using homebrew:
brew install antlr
When using homebrew to install ANTLR, you will need to export a new class path to be able to use antlr to compile java code:
export CLASSPATH=".:/usr/local/Cellar/antlr/4.7.1/antlr-4.7.1-complete.jar:$CLASSPATH"