bison-patches
[Top][All Lists]
Advanced

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

Re: push parser


From: Bob Rossi
Subject: Re: push parser
Date: Tue, 5 Dec 2006 23:39:45 -0500
User-agent: Mutt/1.5.12-2006-07-14

On Tue, Dec 05, 2006 at 10:30:21PM -0500, Bob Rossi wrote:
> OK, I'm going to get the current patch reworked and resubmit it. If that
> is acceptable, we should take out these issues pretty quickly.

How is this?

2006-12-05  Bob Rossi  <address@hidden>                                         
                        
                                                                                
                        
        * data/push.c (yychar_set, yylval_set, yylloc_set): Delete.             
                        
        (yypushparse): Add yynchar, yynlval, yynlloc parameters.                
                        
        (b4_declare_parser_variables): Do not declare yynerrs for push mode.    
                        
        (struct yypvars): Remove b4_declare_parser_variables.                   
                        
        (yypvarsinit): Remove init code for removed variables.                  
                        
        (global scope): Do not declare b4_declare_parser_variables if           
                        
        push or pure mode.                                                      
                        
        (yypushparse): Add b4_declare_parser_variables.                         
                        
        Init new local variables, and remove init code for removed              
                        
        yypvars variables.                                                      
                        
        (yyparse): Delete.                                                      
                        
        * tests/calc.at (_AT_DATA_CALC_Y): Call yypushparse for push mode       
                        
        and yyparse for other modes.                                            
                        
        (AT_CHECK_CALC_LALR): Added '%skeleton "push.c"' for push tests.        
                        
        * tests/local.at (AT_PUSH_IF, AT_PURE_OR_PUSH_IF): Added.               
                        
        (AT_YYERROR_SEES_LOC_IF): push-parser makes this false.                 
                        
        (AT_PURE_LEX_IF): True if pure or push parser.                          
                        

Thanks,
Bob Rossi

Attachment: push.c.diff
Description: Text document


reply via email to

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