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 <haber...@telia.com> 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






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

Reply via email to