Re: Negative Look-ahead problem

2004-04-05 Thread PerlDiscuss - Perl Newsgroups and mailing lists
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

Re: Negative Look-ahead problem

2004-04-05 Thread Karl Gaissmaier
Hi Andras 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

Negative Look-ahead problem

2004-03-31 Thread PerlDiscuss - Perl Newsgroups and mailing lists
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

Re: Negative Look-ahead problem

2004-03-31 Thread Karl Gaissmaier
code. Best Regards Charly Andras -Original Message- From: Karl Gaissmaier [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 4:24 AM To: PerlDiscuss - Perl Newsgroups and mailing lists Subject: Re: Negative Look-ahead problem PerlDiscuss - Perl Newsgroups and mailing lists