Package org.antlr.v4.gui
Class TestRig
java.lang.Object
org.antlr.v4.gui.TestRig
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 -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LEXER_START_RULE_NAME
- See Also:
-
grammarName
-
startRuleName
-
inputFiles
-
printTree
protected boolean printTree -
gui
protected boolean gui -
psFile
-
showTokens
protected boolean showTokens -
trace
protected boolean trace -
diagnostics
protected boolean diagnostics -
encoding
-
SLL
protected boolean SLL
-
-
Constructor Details
-
TestRig
- Throws:
Exception
-
-
Method Details
-
main
- Throws:
Exception
-
process
- Throws:
Exception
-
process
protected void process(Lexer lexer, Class<? extends Parser> parserClass, Parser parser, CharStream input) throws IOException, IllegalAccessException, InvocationTargetException, PrintException
-