help-bison
[Top][All Lists]
Advanced

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

Re: yylval corruption solved


From: Akim Demaille
Subject: Re: yylval corruption solved
Date: Mon, 05 May 2003 08:49:56 +0200
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3 (gnu/linux)

 wim> The problem is that yyval (it was yyval and not yylval) gets
 wim> reused in the parser code.  Value is copied after each 'action'
 wim> to yyvsp.

 wim> In my Actions block in the 'y' syntax I stored the pointer to
 wim> the $<>$ which is the pointer to yyval and hence is overwritten.
 wim> I should have stored the pointer to the yyvsp but that is not
 wim> accessible easily.,

I don't know what you are doing, but it seems to me that you get too
internal with Bison, which is not a good thing.  Unless I
misunderstood your problem, of course.




reply via email to

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