thanks! I had a few problems that your syntax solved.
--- On Tue, 8/11/09, J.Chris Findlay <
j.chris.findlay@...> wrote:
> From: J.Chris Findlay <
j.chris.findlay@...>
> Subject: Re: [JavaCC] Free Form Grammer
> To:
users@...
> Date: Tuesday, August 11, 2009, 5:07 PM
> Make a new lexical state, but also define
> text as (~["\n","\r"])* so it
> doesn't eat the EOL.
>
> On Wed, Aug 12, 2009 at 8:59 AM,
> Kurt Guenther <
kurtg@...>
> wrote:
>
>
>
>
>
> For one of my productions, I'd like to have:
>
>
>
>
>
> <TAG> <TEXT> <EOL>
>
>
>
> where text is (~[])*
>
>
>
> Of course, TEXT ends up being the largest token and
> swallows my Tag.
>
>
>
> I could build a bigger TAG token, but then I end up parsing
> the line myself.
>
>
>
> Any ideas?
>
>
>
> --Kurt
>
>
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail:
users-unsubscribe@...
>
> For additional commands, e-mail:
users-help@...
>
>
>
>
>
>
> --
> - J.Chris Findlay
> (c:
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...