[antlr-interest] comments in grammar files
Matt Benson
gudnabrsam at yahoo.com
Thu Apr 10 14:37:13 PDT 2003
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')?)?
;
--- Terence Parr <parrt at jguru.com> wrote:
> add a newline to the end?
>
> Ter
>
> On Thursday, April 10, 2003, at 01:56 PM, Matt
> Benson wrote:
>
> > Why can't I have single-line comments at the end
> of my
> > grammar file? :(
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - File online, calculators,
> forms, and more
> > http://tax.yahoo.com
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> --
> 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/
>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list