Top Description Fields Constructors Methods
org.antlr.v4.gui

public Class TestRig

extends Object
Class Inheritance
Imports
org.antlr.v4.runtime.CharStream, .CharStreams, .CommonToken, .CommonTokenStream, .DiagnosticErrorListener, .Lexer, .Parser, .ParserRuleContext, .Token, .TokenStream, org.antlr.v4.runtime.atn.PredictionMode, javax.print.PrintException, java.io.IOException, java.lang.reflect.Constructor, .InvocationTargetException, .Method, java.nio.charset.Charset, java.nio.file.Paths, java.util.ArrayList, .List

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

Modifier and TypeField and Description
protected boolean
protected String
protected String
protected boolean
protected final List<String>
public static final String
protected boolean
protected String
protected boolean
protected boolean
protected String
protected boolean

Constructor Summary

AccessConstructor and Description
public
TestRig(String[] args)

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[] args)

public void
protected void
process(Lexer lexer, Class<? extends Parser> parserClass, Parser parser, CharStream input)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

diagnosticsback to summary
protected boolean diagnostics
encodingback to summary
protected String encoding
grammarNameback to summary
protected String grammarName
guiback to summary
protected boolean gui
inputFilesback to summary
protected final List<String> inputFiles
LEXER_START_RULE_NAMEback to summary
public static final String LEXER_START_RULE_NAME
printTreeback to summary
protected boolean printTree
psFileback to summary
protected String psFile
showTokensback to summary
protected boolean showTokens
SLLback to summary
protected boolean SLL
startRuleNameback to summary
protected String startRuleName
traceback to summary
protected boolean trace

Constructor Detail

TestRigback to summary
public TestRig(String[] args) throws Exception

Method Detail

mainback to summary
public static void main(String[] args) throws Exception
processback to summary
public void process() throws Exception
processback to summary
protected void process(Lexer lexer, Class<? extends Parser> parserClass, Parser parser, CharStream input) throws IOException, IllegalAccessException, InvocationTargetException, PrintException