Package org.antlr.v4.gui
Class Interpreter
- java.lang.Object
-
- org.antlr.v4.gui.Interpreter
-
public class Interpreter extends Object
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 Modifier and Type Class Description protected static class
Interpreter.IgnoreTokenVocabGrammar
-
Field Summary
Fields Modifier and Type Field Description protected String
encoding
protected String
grammarFileName
protected boolean
gui
protected String
inputFileName
protected String
lexerGrammarFileName
protected String
parserGrammarFileName
protected boolean
printTree
protected String
profileFileName
static String[]
profilerColumnNames
protected boolean
showTokens
protected String
startRuleName
protected boolean
trace
-
Constructor Summary
Constructors Constructor Description Interpreter(String[] args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Object
getValue(DecisionInfo decisionInfo, String[] ruleNamesByDecision, int decision, int col)
protected ParseInfo
interp()
static void
main(String[] args)
-
-
-
Field Detail
-
profilerColumnNames
public static final String[] profilerColumnNames
-
grammarFileName
protected String grammarFileName
-
parserGrammarFileName
protected String parserGrammarFileName
-
lexerGrammarFileName
protected String lexerGrammarFileName
-
startRuleName
protected String startRuleName
-
printTree
protected boolean printTree
-
gui
protected boolean gui
-
trace
protected boolean trace
-
encoding
protected String encoding
-
showTokens
protected boolean showTokens
-
profileFileName
protected String profileFileName
-
inputFileName
protected String inputFileName
-
-
Method Detail
-
interp
protected ParseInfo interp() throws org.antlr.runtime.RecognitionException, IOException
- Throws:
org.antlr.runtime.RecognitionException
IOException
-
getValue
public static Object getValue(DecisionInfo decisionInfo, String[] ruleNamesByDecision, int decision, int col)
-
-