[antlr-interest] Why was dupTree() removed from BaseTree

Oliver B. Fischer o.b.fischer at gmx.de
Sat Sep 27 11:01:56 PDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Ter,

Yes, this is a solution for me. Not the best one, since I wrote a base
class for me my parser and the method getTreeAdapter() will be defined
in the final parser class, but this is not an real issue.

But might it be, that the error recovering also changed a little bit? I
had to overwrite the recoverFromMismatchedToken() method to force my
parser to fail if it finds an unexpected token.

Bye

Oliver

Terence Parr schrieb:
> 
> On Sep 25, 2008, at 5:13 PM, Oliver B. Fischer wrote:
> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Dear all,
>>
>> I am migrating from 3.0.1 to 3.1 and recognized that dupTree() has been
>> removed from BaseTree.
>>
>> I used this method in many places in my code. That is the intended
>> replacement for this methodn?
> 
> Sorry about that...I think we figured it was generic enough; moved to
> BaseTreeAdaptor:
> 
>     public Object dupTree(Object tree) {...}
> 
> Will that work?
> 
> We needed to move to ast rewriting stuff in v3.1
> 
> Ter
> 

- --
Oliver B. Fischer, Schönhauser Allee 64, 10437 Berlin
Tel. +49 30 44793251, Mobil: +49 178 7903538
Mail: o.b.fischer at gmx.de Blog: http://www.sw-blog.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjedRQACgkQbyc4N0PdoAy20ACeLWEIPCsdrUUKAdixC/yNItZW
nEMAn1GU759FZbvcFQC/mvQrJ1R6rcnT
=QrQs
-----END PGP SIGNATURE-----



More information about the antlr-interest mailing list