Hi,

On 30.11.2016 22:36, Hans Åberg wrote:

>> %token IF "if"
>> %token ELSE "else"

> This can be resolved by adding
>   %nonassoc "then"
>   %nonassoc "else"

Yes, that is what I'm doing, except that I need to give a precedence to
the closing parenthesis because there is no explicit "then" keyword.

This is why I'd like to use %prec here, in order to avoid inadvertently
introducing a precedence in an unrelated place and hiding errors.

   Simon

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to