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 booleandiagnosticsprotected Stringencodingprotected StringgrammarNameprotected booleanguiprotected List<String>inputFilesstatic StringLEXER_START_RULE_NAMEprotected booleanprintTreeprotected StringpsFileprotected booleanshowTokensprotected booleanSLLprotected StringstartRuleNameprotected booleantrace
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)voidprocess()protected voidprocess(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
-
-