Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ok, my first contribution to antlr. So what's the deal? I don't like running antlr through python, but I needed to download it anyway to figure out how to run antlr4-parse. Maybe that should be somewhere in the docs, because now it only says to use python... So I needed to do that, and then it said,
java org.antlr.v4.gui.Intrepreter [X.g4|XParser.g4 XLexer.g4] startRuleName
[-tokens] [-tree] [-gui] [-encoding encodingname]
[-trace] [-profile filename.csv] [input-filename(s)]
Omitting input-filename makes rig read from stdin.
Ok, good! Tx python!
So I tried that, and then it didn't work because the class name is not Intrepreter but Interpreter. So everyone who copies this from the terminal just like I did because he or she whats to be able to run the tools directly and not through python will fail... So I fixed that, so now it says,
java org.antlr.v4.gui.Interpreter [X.g4|XParser.g4 XLexer.g4] startRuleName
[-tokens] [-tree] [-gui] [-encoding encodingname]
[-trace] [-profile filename.csv] [input-filename(s)]
Omitting input-filename makes rig read from stdin.
Ok that's it!
Kind regards,
Ondrej
P.S, Tx for the antlr-parse tool, and the Cxx 14 grammar. I needed that to figure out parse traces from the C++ grammar... So I am going to gave a look at that now, Tx!