help-bison
[Top][All Lists]
Advanced

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

Re: doubts with shift-reduce and nonterminals


From: Hans Aberg
Subject: Re: doubts with shift-reduce and nonterminals
Date: Tue, 24 Jan 2006 14:00:44 +0100

[Replies: cc Help-Bison.]

You look at the tokens immediately before and after the "." of a shift/reduce conflicting rules pair (as in the file '.output'), and set token precedences between those, which may resolve the conflict, if you are lucky Check out the calculator example in the Bison manual.

On 24 Jan 2006, at 03:46, Mili Sandokan wrote:

Hello everyone!

I'm working on a parser..... this is the first time I use something
like Bison, and maybe my doubt is quite obvious, but here I go:

In the .output file are shown a lot of shift-reduce errors that reffer
to nonterminals... the parser seems to be confused about precedence
between them

I don't know how to fix it  and I haven't been able to understand from
the manual a way to specify precedence or asociativity between
nonterminals... I saw something with %prec but I couldn't understand
if it was the right option...

If someone could help i'd be very happy because i've been trying many
hours with no results

Misandov


_______________________________________________
address@hidden http://lists.gnu.org/mailman/listinfo/help-bison





reply via email to

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