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: Adam Smalin
Subject: Re: Reduce-Reduce problem choosing a path
Date: Fri, 31 May 2013 04:09:40 -0400

I completely forgot, I had an idea of how I might be able to rewrite it
(using the * and + precedence examples I seen long ago). I'll get on that.
FYI I am using GLR


On Thu, May 30, 2013 at 5:51 PM, Hans Aberg <address@hidden> wrote:

> 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]