org.antlr.tool
Class Strip

java.lang.Object
  extended by org.antlr.tool.Strip

public class Strip
extends Object

A basic action stripper.


Field Summary
protected  String[] args
           
protected  String filename
           
protected  TokenRewriteStream tokens
           
protected  boolean tree_option
           
 
Constructor Summary
Strip(String[] args)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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.