Class Strip
java.lang.Object
org.antlr.tool.Strip
A basic action stripper.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected Stringprotected TokenRewriteStreamprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidACTION(TokenRewriteStream tokens, CommonTree t) private static voidhelp()private static voidkillTrailingNewline(TokenRewriteStream tokens, int index) static voidvoidvoidprocessArgs(String[] args) voidrewrite(TreeAdaptor adaptor, CommonTree t, String[] tokenNames)
-
Field Details
-
filename
-
tokens
-
tree_option
protected boolean tree_option -
args
-
-
Constructor Details
-
Strip
-
-
Method Details
-
main
-
getTokenStream
-
parseAndRewrite
-
rewrite
- Throws:
Exception
-
ACTION
-
killTrailingNewline
-
processArgs
-
help
private static void help()
-