Le 22 déc. 2013 à 20:35, Akim Demaille <a...@lrde.epita.fr> a écrit :

> 
> Le 22 déc. 2013 à 18:40, Adam Smalin <acidzombi...@gmail.com> a écrit :
> 
>> I forgot to CC this to the group a few days ago.
>> 
>>> The token precedences apply to the tokens immediately before and after the 
>>> parsing ‘.’ (as in the .output file) in the shift/reduce conflicting rules. 
>>> The grammar must be written so that the tokens appear in such a position.
>> 
>> | rval '=' rval %prec '.' ',' rval
> 
> That's bad style, move your "%prec '.'" at the end of the rule.
> It means the same, but it's clearer.  And therefore notice that
> now, this rule has the precedence of '.', not that of '='.

This should have read "not that of ','", as the last token of
the rule is ','.


_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to