Package org.antlr.tool
Class Strip
- java.lang.Object
-
- org.antlr.tool.Strip
-
public class Strip extends Object
A basic action stripper.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
ACTION(org.antlr.runtime.TokenRewriteStream tokens, org.antlr.runtime.tree.CommonTree t)
org.antlr.runtime.TokenRewriteStream
getTokenStream()
static void
main(String[] args)
void
parseAndRewrite()
void
processArgs(String[] args)
void
rewrite(org.antlr.runtime.tree.TreeAdaptor adaptor, org.antlr.runtime.tree.CommonTree t, String[] tokenNames)
-
-
-
Constructor Detail
-
Strip
public Strip(String[] args)
-
-
Method Detail
-
getTokenStream
public org.antlr.runtime.TokenRewriteStream getTokenStream()
-
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)
-
processArgs
public void processArgs(String[] args)
-
-