On Mon, Apr 19, 2010 at 12:25:08PM -0400, Steve Rowe wrote:
[...]
>
> > 3. Can a JFlex comment appear anywhere a space is allowed?
>
> Not everywhere; for your specific questions, though:
>
> > For instance, are the following allowed?
> >
> > %% // end of section 1
> >
> > %{ // the following will be inserted into the generated class
>
> Yes, both of the above are allowed. After '%%' and '%{' all text is
> ignored until end of line - no comment syntax is required. So these are
> allowed too:
>
> %% end of section 1
>
> %{ the following will be inserted into the generated class
I suppose this applies to every option of the form
%[a-z]{
%[a-z]}
like %eofval{ and %eofval}. Right?
Romildo
|