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 void
ACTION
(org.antlr.runtime.TokenRewriteStream tokens, org.antlr.runtime.tree.CommonTree t) org.antlr.runtime.TokenRewriteStream
private static void
help()
private static void
killTrailingNewline
(org.antlr.runtime.TokenRewriteStream tokens, int index) static void
void
void
processArgs
(String[] args) void
rewrite
(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()
-