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: Mon, 29 Mar 2010 23:18:45 +0200

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]