[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using %prec to resolve shift-reduce
From: |
Hans Åberg |
Subject: |
Re: Using %prec to resolve shift-reduce |
Date: |
Wed, 30 Nov 2016 22:36:47 +0100 |
> On 30 Nov 2016, at 19:54, Simon Richter <address@hidden> wrote:
>
> Likewise, I'd like to resolve the dangling-else problem more locally:
>
> %token IF "if"
> %token ELSE "else"
>
This can be resolved by adding
%nonassoc "then"
%nonassoc "else"
A more local solution has been discussed, at least.