[antlr-interest] antlr 3.2.1 - when? (bugs 381 and 314)

Tomasz Jastrzebski tdjastrzebski at yahoo.com
Thu Dec 17 09:54:31 PST 2009


Well, this bug 314 is some-how related to bug 381.
 
Since version 3.1.2 "p+=rule" results in "strongly typed" collection of rule_return objects.
This way rule return values can be conveniently accessed with no need to downcast.
 
Unfortunately, this prevents definitions like: p+=ruleA | p+=ruleB
So, the solution is to change the collection type back to generic RuleReturnScope and downcast to rule_return if/when needed.
 
I think the best solution would be to modify the lexer/parser generator so it makes a smart choice and outputs "strongly typed" collection whenever possible, but when collection would contain two or more rule return types generic RuleReturnScope type is used.
 
Thomas










--- On Thu, 12/17/09, Laurent Caillette <laurent.caillette at gmail.com> wrote:


From: Laurent Caillette <laurent.caillette at gmail.com>
Subject: Re: [antlr-interest] antlr 3.2.1 - when?
To: antlr-interest at antlr.org
Cc: "Tomasz Jastrzebski" <tdjastrzebski at yahoo.com>
Date: Thursday, December 17, 2009, 12:27 PM


Hi all,

How is it related to ANTLR-381? I'd be glad to move forward to ANTLR-3.2+

Regards,

c.

On Thu, Dec 17, 2009 at 4:55 PM, Tomasz Jastrzebski
<tdjastrzebski at yahoo.com> wrote:
>
> Hi all,
>
> When the new ANTLR version can be expected?
> I am hoping to convince Terence to fix bug 314
> http://www.antlr.org/jira/browse/ANTLR-314
> Because of this glitch I am stacked with version 3.1.1
>
> Thanks,
>
> Thomas
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091217/dba3e531/attachment.html 


More information about the antlr-interest mailing list