sbt-antlr4 icon indicating copy to clipboard operation
sbt-antlr4 copied to clipboard

Support for grun

Open phdoerfler opened this issue 3 years ago • 1 comments

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?

phdoerfler avatar Mar 27 '21 16:03 phdoerfler

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 😄 )

ihji avatar Apr 16 '21 18:04 ihji