[antlr-interest] Suppress output of org.antlr.runtime.tree.TreeRewriter
Viktor Lioutyi
Viktor_Lioutyi at i2.com
Tue Jun 30 07:21:49 PDT 2009
Hi Stefan,
ANTLR comes with the source code. For issues like this I created patch.jar file with small fixes to ANTLR and put on a classpath before ANTLR jar files. For ANTLR 3.1.3 this output is in antlr-3.1.3/runtime/Java/src/main/java/org/antlr/runtime/tree/TreeRewriter.java, method
public Object applyOnce(Object t, fptr whichRule) {
Thanks,
Viktor
-----Original Message-----
From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Stefan Bischof
Sent: Tuesday, June 30, 2009 7:28 AM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Suppress output of org.antlr.runtime.tree.TreeRewriter
Hi guys,
I'm currently using a rewriting tree grammar (rewrite=true, filter=true)
which means my parser is extending org.antlr.runtime.tree.TreeRewriter.
I want to feed output of my program directly to another program with an
unnamed pipe | on the command line. Unfortunately that's not possible
now because the TreeRewriter shows every rewriting on stdout (like a ->
b).
So, is there a possibility to suppress this output (yes, it's using
System.out.println)?
regards
Stefan Bischof
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list