Re: JavaCC and <BOF> (or <SOF>)
- From: Sreenivas Viswanadha <sreeni@xxxxxxxxxxxxxx>
- Date: Wed, 01 Mar 2006 07:56:09 -0800
You're right, now that I tried it it works fine. Actually I appeared to have a different issue... The string definition was not correct and produced rather strange results. Should have been:
<STRING: (<STRING_CHARS)+ ("-" | <STRING_CHARS>)* >
Right. I didn't look closely enough. You don't need the + on the prefix though. It will be good keep the grammar clean so there is no confusion.
<STRING: (<STRING_CHARS) ("-" | <STRING_CHARS>)* >
should do it.
Sreeni.
.
- References:
- JavaCC and <BOF> (or <SOF>)
- From: kaneda
- Re: JavaCC and <BOF> (or <SOF>)
- From: Sreenivas Viswanadha
- Re: JavaCC and <BOF> (or <SOF>)
- From: kaneda
- JavaCC and <BOF> (or <SOF>)
- Prev by Date: Re: JavaCC and <BOF> (or <SOF>)
- Next by Date: JJTree: NODE_FACTORY?
- Previous by thread: Re: JavaCC and <BOF> (or <SOF>)
- Next by thread: JJTree: NODE_FACTORY?
- Index(es):