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 classInterpreter.IgnoreTokenVocabGrammar
-
Field Summary
Fields Modifier and Type Field Description protected Stringencodingprotected StringgrammarFileNameprotected booleanguiprotected StringinputFileNameprotected StringlexerGrammarFileNameprotected StringparserGrammarFileNameprotected booleanprintTreeprotected StringprofileFileNamestatic String[]profilerColumnNamesprotected booleanshowTokensprotected StringstartRuleNameprotected booleantrace
-
Constructor Summary
Constructors Constructor Description Interpreter(String[] args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectgetValue(DecisionInfo decisionInfo, String[] ruleNamesByDecision, int decision, int col)protected ParseInfointerp()static voidmain(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.RecognitionExceptionIOException
-
getValue
public static Object getValue(DecisionInfo decisionInfo, String[] ruleNamesByDecision, int decision, int col)
-
-