[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: %merge <foo> -> %merge foo ?
From: |
Akim Demaille |
Subject: |
Re: %merge <foo> -> %merge foo ? |
Date: |
Thu, 13 Jul 2006 09:40:40 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
>>> "Joel" == Joel E Denny <address@hidden> writes:
> I think %merge ought to be like %destructor, %printer,
> %initial-action, and Akim's proposed %error-report (to replace
> yyerror):
Agreed. There are more functions on this list, including
location_default, and, after all why not, yylex (I mean the
invocation). BTW we don't need to make them all function, the
interface makes it easy for us to inline them if needed.
> %merger { $$ = new_lhs ($1, $2); } [RULE_A] [RULE_B];
> lhs:
> [RULE_A] rhs1 rhs2 { $$ = new_lhs ($1, $2); }
> [RULE_B] rhs1 rhs2 rhs3 { $$ = new_lhs ($1, $2, $3); }
> ;
I agree naming is nice, but let's keep our set of lexical construct
simple.
lhs:
rhs1 rhs2 %rule L1 { $$ = new_lhs ($1, $2); }
| rhs1 rhs2 rhs3 %rule L2 { $$ = new_lhs ($1, $2, $3); }
- Re: returning a symbol, (continued)
- %merge <foo> -> %merge foo ?, Paul Eggert, 2006/07/12
- Re: %merge <foo> -> %merge foo ?, Joel E. Denny, 2006/07/12
- Re: %merge <foo> -> %merge foo ?, Joel E. Denny, 2006/07/12
- Re: %merge <foo> -> %merge foo ?,
Akim Demaille <=
- Re: %merge <foo> -> %merge foo ?, Akim Demaille, 2006/07/13
- Re: %type {...} a b c, Akim Demaille, 2006/07/13
- (no subject), haberg, 2006/07/13