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: [email protected]
[mailto:[email protected]] On Behalf Of Stefan Bischof
Sent: Tuesday, June 30, 2009 7:28 AM
To: [email protected]
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
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---