help-bison
[Top][All Lists]
Advanced

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

Re: merge function called AFTER user actions


From: Derek M Jones
Subject: Re: merge function called AFTER user actions
Date: Mon, 26 Sep 2005 11:30:38 +0100
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Joel,

Does anybody know why the decision was made to have the %merge
function called last?  This choice seems to be very suboptimal.


The merge function's job is to merge the semantic values constructed by the two actions. If it were called before the actions, what would it merge?

Ok, so let's change its name.

%premerge  ??
%initmerge ??

In my case I would have to save all sorts of information in
order to undo the effects of the semantic actions that happen
in both rules are reduced.  It is much simpler to perform a
test (ie, will another rule also be matched for this token
subsequence) in a rule.

Attachment: derek.vcf
Description: Vcard


reply via email to

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