bug-bison
[Top][All Lists]
Advanced

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

Re: %destructor feedback


From: Akim Demaille
Subject: Re: %destructor feedback
Date: Tue, 27 Dec 2005 18:46:48 +0100


Le 22 déc. 05 à 19:49, Joel E. Denny a écrit :

Would it be worthwhile to warn about unmentioned typed $$ as well?

The correct handling of $$ is troublesome when there are midrule
actions.  I tried to see how this could be implemented peacefully
in bison, but I gave up: there's a lot of code duplication here,
complexified by games played with "current_rule" and "previous_rule".
This is the kind of things I'd like to get rid of by moving the
translation of $$ etc. in a second pass, in a second scanner.

So I propose that we leave it as is for now, later, with a cleaner
set up, it will be easier to have it right.

I installed the following.  Note that the warning is somewhat annoying
with rules running YYERROR etc.

Attachment: diffs.patch
Description: Binary data




reply via email to

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