How to run :
-
Get the code
git clone https://github.com/dharmeshkakadia/hello-antlr/ && cd hello-antlr
-
Compile it. This takes care of generating the code for the grammar as well.
mvn compile
-
Run it.
mvn exec:java -q
it would print:
Entering Msg : world Exiting Msg