[antlr-interest] Re: SL_COMMENT in java.g
rodrigo reyes
rodrigor at in-fusio.com
Mon Oct 20 01:20:26 PDT 2003
Hi Terence,
> On Friday, October 17, 2003, at 05:15 AM, rodrigo reyes wrote:
> > SL_COMMENT
> > : "//"
> > (~('\n'|'\r')
> > {
> > if (LA(1) == EOF_CHAR)
> > break;
> > }
> > )*
> > ;
>
> Hi guys...i'm not sure I like the "break" in there as it is
> not part of
> the grammar analysis; or rather it can screw you up.
> Hmm...i'll take a peek.
I don't like it either, as it refers to something out of the grammar,
that's why I am looking for an alternative solution.
However, I have plenty of files with ending SL_COMMENT which are not
matched by the current grammar. So I need at least a temporary solution.
If you have any advice on how to fix it properly, I'll gladly take it ;-)
Bests,
Rodrigo
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list