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

Oliver B. Fischer o.b.fischer at gmx.de
Sun Sep 28 12:52:33 PDT 2008


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

Hello Ter,

thank you. I solved all problems in the mean time.

May you can add this issues to
http://www.antlr.org/wiki/display/ANTLR3/ANTLR+3.1+Release+Notes below
"Incompatibility issues"?

Bye

Oliver

Terence Parr schrieb:
> 
> On Sep 27, 2008, at 11:01 AM, Oliver B. Fischer wrote:
> 
>> -----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.
> 
> I think you could just define dupTree to invoke your adapter.
> 
>> 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.
> 
> To properly handle insertion of missing tokens, I had to change the
> interface of match and so on. I was hoping that most people were not
> overriding the basic functionality. doh! I can help you update things on
> your side. Just let me know how I can help, such as answering these
> questions :)
> 
> 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

iEYEARECAAYFAkjf4IEACgkQbyc4N0PdoAx4IgCfadbQOX6NGAjAbmlXJfVumvOz
7qkAn0tQTBMNG5WaY4MmHJ6BZNS9j4D+
=JL9b
-----END PGP SIGNATURE-----


More information about the antlr-interest mailing list