[antlr-interest] Re: SL_COMMENT in java.g
Terence Parr
parrt at cs.usfca.edu
Fri Oct 17 12:13:22 PDT 2003
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.
Ter
--
Professor Comp. Sci., University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Co-founder, http://www.jguru.com
Co-founder, http://www.knowspam.net enjoy email again!
Co-founder, http://www.peerscope.com pure link sharing
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list