[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: push parser
From: |
Bob Rossi |
Subject: |
Re: push parser |
Date: |
Fri, 13 Oct 2006 16:51:19 -0400 |
User-agent: |
Mutt/1.5.11 |
On Fri, Oct 13, 2006 at 04:40:28PM -0400, Bob Rossi wrote:
> On Fri, Oct 13, 2006 at 03:55:17PM -0400, Bob Rossi wrote:
> > On Fri, Oct 13, 2006 at 11:17:39AM -0700, Paul Eggert wrote:
> > > Bob Rossi <address@hidden> writes:
> I guess what I'm asking is, should yyerror see the locations in push
> mode? I'm thinking no, what do you think?
>
> Bob Rossi
Well, here is a patch with yyerror not seeing the locations. If that
is not what I need to do, I can change the patch.
Bob Rossi
2006-10-02 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.
push2.c.diff
Description: Text document
- Re: push parser, (continued)
Re: push parser, Bob Rossi, 2006/10/11
- Re: push parser, Bob Rossi, 2006/10/12
- Re: push parser, Paul Eggert, 2006/10/12
- Re: push parser, Bob Rossi, 2006/10/13
- Re: push parser, Paul Eggert, 2006/10/13
- Re: push parser, Bob Rossi, 2006/10/13
- Re: push parser, Bob Rossi, 2006/10/13
- Re: push parser,
Bob Rossi <=
- Re: push parser, Bob Rossi, 2006/10/24