[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ambiguous grammar tokens
From: |
babar haq |
Subject: |
ambiguous grammar tokens |
Date: |
Fri, 22 Feb 2002 03:40:33 -0500 |
hi ppl
its me again.
i am experiencing a problem regarding having correct tokens returned from lex
function to yacc function.
i want two tokens to be returned for following expresions
-->1*(alpha-numeric) {return ALNUM;} means strings having one or more
alpha-numeric characters.
-->4*(alpha-numeric|"-"|"."){return OTHER} means strings having four or more
alphanumeric char or "-" or "." characters.
the problem is that lex function do not return tokens correctly. it returns
ALNUM when i am expecting OTHER to be returned. or vice-versa.
what should i do??
thnx.
bye
--
_______________________________________________
Win a ski trip!
http://www.nowcode.com/register.asp?affiliate=1net2phone3a
- ambiguous grammar tokens,
babar haq <=