Package org.antlr.v4.gui
Class Interpreter
java.lang.Object
org.antlr.v4.gui.Interpreter
Interpret a lexer/parser, optionally printing tree string and dumping profile info
$ java org.antlr.v4.gui.Interpreter [X.g4|XParser.g4 XLexer.g4] startRuleName inputFileName
[-tree]
[-gui]
[-trace]
[-encoding encoding]
[-tokens]
[-profile filename.csv]
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
dumpProfilerCSV
(GrammarParserInterpreter parser, ParseInfo parseInfo) static Object
getValue
(DecisionInfo decisionInfo, String[] ruleNamesByDecision, int decision, int col) protected ParseInfo
interp()
static void
-
Field Details
-
profilerColumnNames
-
grammarFileName
-
parserGrammarFileName
-
lexerGrammarFileName
-
startRuleName
-
printTree
protected boolean printTree -
gui
protected boolean gui -
trace
protected boolean trace -
encoding
-
showTokens
protected boolean showTokens -
profileFileName
-
inputFileName
-
-
Constructor Details
-
Interpreter
- Throws:
Exception
-
-
Method Details
-
interp
- Throws:
org.antlr.runtime.RecognitionException
IOException
-
dumpProfilerCSV
-
getValue
public static Object getValue(DecisionInfo decisionInfo, String[] ruleNamesByDecision, int decision, int col) -
main
- Throws:
Exception
-