Class Strip

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

public class Strip extends Object
A basic action stripper.
  • Field Details

    • filename

      protected String filename
    • tokens

      protected org.antlr.runtime.TokenRewriteStream tokens
    • tree_option

      protected boolean tree_option
    • args

      protected String[] args
  • Constructor Details

    • Strip

      public Strip(String[] args)
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • getTokenStream

      public org.antlr.runtime.TokenRewriteStream getTokenStream()
    • parseAndRewrite

      public void parseAndRewrite() throws Exception
      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

      public void processArgs(String[] args)
    • help

      private static void help()