I wrote:
PS Please cc me. I'm not subscribed.
and apparently I didn't even manage to send an address! Doh.
Please use dhoworth at mrc-lmb.cam.ac.uk
FWIW, I'm sending via:
http://www.perldiscuss.com/post.php?type=replyid=481group=perl.recdescent
and I did fill in my name and address, but they
Karl Gaissmaier wrote:
hmmm, I've overseen that the global skip pattern
is qr/s*/, therefore ANDY is matched as a reserved
word too, since the token prefix can be just nothing.
To change the token prefix in the RESERVED rule
to s+ (-- see the + instead of *) should help:
Thank you very
reserved_word: 'AND' | 'OR'
WORD: ...!reserved_word /[a-z0-9]+/i
Using the above grammar, rule WORD fails to match any token that start
with a reserved word (e.g. Andy). That is not what I expected since in
'demo_Cgrammar.pl', we have:
IDENTIFIER: ...!reserved_word /[a-z]\w*/i
I