org.antlr.tool
Class Strip
java.lang.Object
org.antlr.tool.Strip
public class Strip
- extends Object
A basic action stripper.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filename
protected String filename
tokens
protected TokenRewriteStream tokens
tree_option
protected boolean tree_option
args
protected String[] args
Strip
public Strip(String[] args)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
getTokenStream
public TokenRewriteStream getTokenStream()
parseAndRewrite
public void parseAndRewrite()
throws Exception
- Throws:
Exception
rewrite
public void rewrite(TreeAdaptor adaptor,
CommonTree t,
String[] tokenNames)
throws Exception
- Throws:
Exception
ACTION
public static void ACTION(TokenRewriteStream tokens,
CommonTree t)
processArgs
public void processArgs(String[] args)
Copyright © 2011. All Rights Reserved.