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 <[email protected]> wrote: From: Laurent Caillette <[email protected]> Subject: Re: [antlr-interest] antlr 3.2.1 - when? To: [email protected] Cc: "Tomasz Jastrzebski" <[email protected]> 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 <[email protected]> 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 > -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
