help-bison
[Top][All Lists]
Advanced

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

Re: Reduce-Reduce problem choosing a path


From: Hans Aberg
Subject: Re: Reduce-Reduce problem choosing a path
Date: Thu, 30 May 2013 23:51:11 +0200

On 30 May 2013, at 22:02, Adam Smalin <address@hidden> wrote:

> Here is an example of my input
> 
> thing { $var.member }
> 
> The problem is I allow
> 
> thing { .member $var }
> 
> So what is happening is I'd LIKE to always use $var.member but it can
> reduce $var then .member which should not be allowed if $var is in front of
> it (or $foo or $anything).
> 
> I'm not exactly sure where to put the precedence rule or how to. 

You can't resolve reduce-reduce conflicts with token precedences: the grammar 
must be rewritten, or possibly use GLR.

Hans





reply via email to

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