I'm trying to use antlr to get the AST of a given java file. I've run antlr4 on both the JavaLexer.g4 and the JavaParser.g4 to generate everything but I'm trying to use grun to see the tree from a java file. I've tried commands like this .\grun JavaLexer tokens HelloWorld.java -gui but get nothing back.
I'm confused on if I need to be calling the JavaLexer, the JavaParser or if I completely have the command wrong in every way. I'm using PowerShell if that matters.
(edit) the correct powershell command is: .\grun Java compilationUnit HelloWorld.java -gui Thanks for the help!