[antlr-interest] comments in grammar files
Terence Parr
parrt at jguru.com
Thu Apr 10 16:25:00 PDT 2003
On Thursday, April 10, 2003, at 02:37 PM, Matt Benson wrote:
> Okay, this is the same as with the Java grammar, isn't
> it? Seems like I had a fix for that... making the
> terminating line break optional... is there a negative
> consequence of this?
>
> SL_COMMENT : "//" (~('\n'|'\r'))* ('\n'|'\r'('\n')?)?
> ;
I think that's ok...haven't folded back into antlr.g yet
though...sorry. Not a problem for unix as it abhors a file sans
terminating newline; until it annoys me I rarely get to it <snicker>
Ter
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Lecturer in Comp. Sci., University of San Francisco
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list