[antlr-interest] Reporting bugs
Jim Idle
jimi at temporal-wave.com
Fri Feb 1 18:49:39 PST 2008
These are already reported. There is a finite amount of time to fix
things unfortunately and your comments are noted and they are correct,
but until the ANTLR parser is written in ANTLR3 it is difficult to catch
some of these things and that hasn't risen to the top of the list yet I
am afraid. So, in the short term you have to get experience. Though it
isn't quite kosher to say this, it does actually help you to understand
what is going on ;-)
Jim
> -----Original Message-----
> From: Olivier Lefevre [mailto:lefevrol at yahoo.com]
> Sent: Friday, February 01, 2008 6:59 PM
> To: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Reporting bugs
>
> Terence Parr wrote:
> > yup. i want to filter them.
>
> ??? Nobody says you couldn't filter them: you can always mark
> as invalid and close or even delete those you disagree with.
>
> > what's the issue?
>
> See under "internal error". Briefly,
> 1) The compiler should not bomb when encountering a mix of
> AST operators and a tree construction rewrite rule, as in
> list : '['! (elements)? ']'! -> ^(ARRAY elements) ;
> It's probably illegal and it should just say that
> 2) It should not allow mismatches between the cardinality of
> a rewrite rule element and the cardinality of the actual
> element, as in
> list: '[' elements? ']' -> ^(ARRAY elements) ;
> Right now it does and that can lead the parser to bomb at
> runtime.
>
> Regards,
>
> -- O.L.
>
More information about the antlr-interest
mailing list