Package org.antlr.tool
Class Strip
java.lang.Object
org.antlr.tool.Strip
A basic action stripper.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidACTION(org.antlr.runtime.TokenRewriteStream tokens, org.antlr.runtime.tree.CommonTree t) org.antlr.runtime.TokenRewriteStreamprivate static voidhelp()private static voidkillTrailingNewline(org.antlr.runtime.TokenRewriteStream tokens, int index) static voidvoidvoidprocessArgs(String[] args) voidrewrite(org.antlr.runtime.tree.TreeAdaptor adaptor, org.antlr.runtime.tree.CommonTree t, String[] tokenNames)
-
Field Details
-
filename
-
tokens
protected org.antlr.runtime.TokenRewriteStream tokens -
tree_option
protected boolean tree_option -
args
-
-
Constructor Details
-
Strip
-
-
Method Details
-
main
- Throws:
Exception
-
getTokenStream
public org.antlr.runtime.TokenRewriteStream getTokenStream() -
parseAndRewrite
- Throws:
Exception
-
rewrite
public void rewrite(org.antlr.runtime.tree.TreeAdaptor adaptor, org.antlr.runtime.tree.CommonTree t, String[] tokenNames) throws Exception - Throws:
Exception
-
ACTION
public static void ACTION(org.antlr.runtime.TokenRewriteStream tokens, org.antlr.runtime.tree.CommonTree t) -
killTrailingNewline
private static void killTrailingNewline(org.antlr.runtime.TokenRewriteStream tokens, int index) -
processArgs
-
help
private static void help()
-