RE: YYSTYPE doesnt work

2006-09-19 Thread Vidhya
Hi I have redefined YYSTYPE to char* in my code and is working for me . Can you paste the y file and the generated code. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of maaltan Sent: Tuesday, September 19, 2006 10:34 AM To: Help-bison@gnu.org Subject: YYS

RE: Why bison doesn't like my grammar?

2006-09-18 Thread Vidhya
Hi I tried your grammar For const_var_dim_list , you had given as const_var_dim_list : const_var_dim_list const_var_dim ; but where is const_var_dim_list again defined. (like what does it get reduced to) So bison errs saying 2useless nonterminals, I tried some thing like this Const_var_dim_list

Contional productions

2006-07-10 Thread Vidhya
Hi All Can I write conditional productions based on a flag . I have a normal production ,then inside the action part I determine the value of the flag . After that I want the productions itself to be controlled by this flag . Some thing like If (flag == true) Then this production Else S

Mutiple parser!

2006-02-01 Thread Vidhya
Hi *! I have two parser and two scanner, the second one I have prefixed as xx, but when I run , call to xxparse() loops indefinitely. For the second parser and scanner I have used flex -Pxx file2.l Bison -pxx file2.y What else I need to include for the multiple parser to work! ___

Need Help on parser

2006-01-31 Thread Vidhya
Hi All I have written two yacc files and grammars to process an input and am compiling all the c files into a single exe . for one of the flex and yacc file , the option for generating c file is flex -Pxx sample.l bison -pxx sample.y . So these files have xxparse and xxlex. When I try to run