ihji / sbt-antlr4

Antlr4 plugin for sbt 1.1+ and 0.13.x
57 stars 35 forks source link

Support for grun #30

Open phdoerfler opened 3 years ago

phdoerfler commented 3 years ago

I'd like to test the generated parser using grun aka org.antlr.v4.gui.TestRig. Amongst other things it provides a simple GUI:

Grun GUI

This is probably trivial to do if the example on the ANTLR website is anything to go by:

$ antlr4 Expr.g4
$ javac Expr*.java
$ grun Expr prog -gui
100+2*34
^D

How about adding a task "grun" or perhaps run in Antlr4 or test in Antlr4 that starts grun? Thoughts?

ihji commented 3 years ago

Yes, definitely good to have. I will add this feature sooner or later but can't promise the exact date (PRs are always welcome btw 😄 )