help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

language in which keywords can be used as variables


From: shri
Subject: language in which keywords can be used as variables
Date: 10 Oct 2001 13:07:12 -0000

hi
i have a parser for a language in which the keywords can used as variable names.

my rule goes something like this

variable:  IDENT
           |all_keywords
;
all_keywords:  /*list of all keywords*/

IDENT is returned from Flex as below
LETTER   [a-zA-Z0-9]

{LETTER}+   { return IDENT;}

naturally this leads to lot of shift reduce conflicts and reduce reduce 
conflicts.

Is there any method wherein i can handle such types of languages in bison?

thanks and regards
srinivas
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]