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