[antlr-interest] TokenStreamSelector replacement pattern for ANTLR2 to ANTLR3
golledge at us.ibm.com
Thu Apr 5 09:05:14 PDT 2012
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.
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
I'm thinking that an appropriate way to replace this
is with an delegates.
Any better/other ideas?
"Ah, because I have learned something since last week." - Gandhi
More information about the antlr-interest