I've modified my code to the following:
$$ = varLocation //at the ref_name rule level
$$ = $2 //at the ( expr ) rule level
$$ = bufferT //at the expr rule level
The output is still incorrect. Moving up the stack the value does not
hold. For example after derivating to the ref_name level for the
On Fri, Aug 6, 2010 at 5:17 AM, Sasan Forghani wrote:
>
> ..
> expr : expr BL_ADDOP expr
> ...
>char bufferT[6];
> ...
>$$ = bufferT;
>
$$ is a char* isn't it? In which case this assigns it to the
temporary bufferT, which is going to get wiped out as soon as it goes out of
scope.
Maybe