help-bison
[Top][All Lists]
Advanced

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

Re: grammar for propositional logic


From: Martin McDermott
Subject: Re: grammar for propositional logic
Date: Wed, 1 Sep 2010 02:25:41 -0400

Any comments on why I would be getting a syntax error?

On Wed, Sep 1, 2010 at 1:50 AM, John P. Hartmann <address@hidden>wrote:

> ---------- Forwarded message ----------
> From: John P. Hartmann <address@hidden>
> Date: 1 September 2010 07:49
> Subject: Re: grammar for propositional logic
> To: Martin McDermott <address@hidden>
>
>
> You should inspect the .output file to resolve your conflicts.  For
> something as simple as yours, you should have zero tolerance for
> conflicts, even shift/reduce.
>
> As a minimum you need to deal with operator associativity and precedence.
>
> %left T_OR T_XOR
> %left T_AND
>
> Might be what you want, if AND binds closer than OR.
>
>   j.
>
> _______________________________________________
> address@hidden http://lists.gnu.org/mailman/listinfo/help-bison
>


reply via email to

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