[antlr-interest] 2.7.1 -> 2.7.2 gotcha's?
Kristian Kvilekval
kkvilekval at yahoo.com
Tue Aug 5 23:07:36 PDT 2003
I am still chasing it down. I am using
an extended java parser (java.g) from a few
years ago (I inherited the code).
I've looked for ASTFrame and can't find
it.
--- Terence Parr <parrt at cs.usfca.edu> wrote:
>
> On Tuesday, August 5, 2003, at 11:46 AM, kkvilekval
> wrote:
>
> Excellent points!
>
> can you describe in more detail how the trees are
> being improperly
> constructed?
>
> Did you regenerate your .java files from the .g
> using 2.7.2 or just
> point at the new jar file?
>
> Regards,
> Terence
>
> > I've had alot of trouble going from 2.7.1 to
> 2.7.2
> >
> > I've found two problems
> > 1. The grammar file now must specify fully
> qualified
> > names for AST contruction
> > i.e.
> > Previously we have production rules
> > <AST=IdentifierAST>
> >
> > We must now use
> > <AST=mokan.compiler.expr.IdentifierAST>
> >
> > since the class value is passed as string to
> > the constructor function.
> >
> > 2. AST nodes must have public constructors
> > otherwise the reflection contructor cannot
> > find it in the class file.
> >
> > Make sure all your AST nodes have
> > i.e.
> > 2.7.1
> > protected VarAST(final Token token)
> > 2.7.2
> > public VarAST(final Token token)
> >
> >
> > Finally, the tree seems to be constructed
> differently.
> > A previously working translator now fails
> completely
> > with type cast errors, during the tree-walk.
> >
> >
> > Is there a document describing what has changed
> and
> > how to fix these problems???
> >
> > Thx.
> >
> >
> >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> --
> Professor Comp. Sci., University of San Francisco
> Creator, ANTLR Parser Generator,
> http://www.antlr.org
> Co-founder, http://www.jguru.com
> Co-founder, http://www.knowspam.net enjoy email
> again!
> Co-founder, http://www.peerscope.com pure link
> sharing
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list