[antlr-interest] anybody get bitten by ANTLR's AST interface requirement

Terence Parr parrt at cs.usfca.edu
Fri Jan 20 09:19:07 PST 2006


On Jan 20, 2006, at 12:49 AM, Martin Probst wrote:
> A 1.5 feature I consider quite important never gets mentioned btw:
> overriding methods can now declare a subclass as the return type, e.g.
> if you have "class B extends A {}" and some method "A doFoo()" you can
> override it to "B doFoo()". User correctly this can significantly
> enhance APIs and type safety.

Ah!  Wow!  I have been complaining about this inability for a long  
time.  Glad they fixed it ;)

Ter


More information about the antlr-interest mailing list