Antlr Testrig im Java -Programm
// CMD: java org.antlr.v4.gui.TestRig GrammarName startRuleName -gui ./sample.sql
import org.antlr.v4.gui.TestRig;
...
TestRig.main(new String[]{"GrammarName" ,"startRuleName", "-gui","./sample.sql"});
Lazy Lizard