[antlr-interest] TokenStreamSelector replacement pattern for ANTLR2 to ANTLR3
Chris Golledge
golledge at us.ibm.com
Thu Apr 5 09:05:14 PDT 2012
FWIW,
The answer, I'm pretty sure, is the best fit replacement is to use
org.antlr.runtime.tree.CommonTreeNodeStream, and replace the stream names
(string) in the push() calls with the names replace with ints, set to
values above 1.
Can't tell for sure because I've hit the problem with statics being larger
than 64K in my parser, and I have not figured a way past that yet.
Chris
From: Chris Golledge/Lenexa/IBM at IBMUS
To: antlr-interest at antlr.org
Date: 04/03/2012 10:56 AM
Subject: [antlr-interest] TokenStreamSelector replacement pattern for
ANTLR2 to ANTLR3
Sent by: antlr-interest-bounces at antlr.org
Hi,
I'm thinking that an appropriate way to replace this
http://www.antlr2.org/javadoc/antlr/TokenStreamSelector.html
is with an delegates.
http://www.antlr.org/blog/antlr3/reuse.tml
Any better/other ideas?
Chris
"Ah, because I have learned something since last week." - Gandhi
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