Package org.antlr.v4.gui
Class TestRig
- java.lang.Object
-
- org.antlr.v4.gui.TestRig
-
public class TestRig extends Object
Run a lexer/parser combo, optionally printing tree string or generating postscript file. Optionally taking input file. $ java org.antlr.v4.runtime.misc.TestRig GrammarName startRuleName [-tree] [-tokens] [-gui] [-ps file.ps] [-trace] [-diagnostics] [-SLL] [input-filename(s)]
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
diagnostics
protected String
encoding
protected String
grammarName
protected boolean
gui
protected List<String>
inputFiles
static String
LEXER_START_RULE_NAME
protected boolean
printTree
protected String
psFile
protected boolean
showTokens
protected boolean
SLL
protected String
startRuleName
protected boolean
trace
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
void
process()
protected void
process(Lexer lexer, Class<? extends Parser> parserClass, Parser parser, CharStream input)
-
-
-
Field Detail
-
LEXER_START_RULE_NAME
public static final String LEXER_START_RULE_NAME
- See Also:
- Constant Field Values
-
grammarName
protected String grammarName
-
startRuleName
protected String startRuleName
-
printTree
protected boolean printTree
-
gui
protected boolean gui
-
psFile
protected String psFile
-
showTokens
protected boolean showTokens
-
trace
protected boolean trace
-
diagnostics
protected boolean diagnostics
-
encoding
protected String encoding
-
SLL
protected boolean SLL
-
-
Method Detail
-
process
protected void process(Lexer lexer, Class<? extends Parser> parserClass, Parser parser, CharStream input) throws IOException, IllegalAccessException, InvocationTargetException, PrintException
-
-