|
From: | Hans Aberg |
Subject: | Re: %left is not working |
Date: | Thu, 5 Aug 2010 15:17:37 +0200 |
On 5 Aug 2010, at 14:01, Sasan Forghani wrote:
So in any action for a production such as the expr production and specifically the expr : ( expr ) {some action}, specifying $<blIdentifier>$ will give expr its type.
Bison just implements a union, and the $<foo>$ and $<foo>k will select the foo field of tha union. So must be specified somehow, but the untyped default action $$ = $1 works, too, as the whole union is copied over.
[Prev in Thread] | Current Thread | [Next in Thread] |