help-bison
[Top][All Lists]
Advanced

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

Re: Updating UnderC C/C++ interpreter and reduce/reduce conflicts


From: Hans Aberg
Subject: Re: Updating UnderC C/C++ interpreter and reduce/reduce conflicts
Date: Tue, 30 Mar 2010 00:09:42 +0200

Please cc the Help-Bison mailing list, so that others can help.

  Hans


On 29 Mar 2010, at 23:58, Domingo Alvarez Duarte wrote:

I did looked at both but till now I couldn't figure out how to solve then and that is the reason I'm posting it to see if some people with higher knowledge can give me a clue !

Thnaks for your time and attention !

On Mon, Mar 29, 2010 at 11:18 PM, Hans Aberg <address@hidden> wrote:
On 29 Mar 2010, at 20:36, Domingo Alvarez Duarte wrote:

It seems that the problem derives from the reduce/reduce conflicts that some
modification to the grammar in the past could introduced.

For reduce/reduce conflicts, one has to generally rewrite the grammar or use the %glr feature (see the Bison manual).

There is a Yacc C++ grammar:
 http://www.parashift.com/c++-faq-lite/compiler-dependencies.html#faq-38.11
And one for C:
 http://www.quut.com/c/ANSI-C-grammar-y.html

So you might check them out. Also, there were some discussions recently about handling C++ ambiguities in the Usenet newsgroup comp.compilers.

 Hans








reply via email to

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