On 8 Jun 2009, at 13:10, xelanoimis wrote:
The Bison manual calculator example shows how to do that.
Yeah, I used a special token like that, to force the precedence of
that
particular rule. I'm not sure why didn't work.
I think I'll have to write the grammar better, more like the ansi c
one,
with separate rule for unary expressions and so. Someone having a
similar
problem suggested that in another thread.
There is a yaccable grammar for C++:
http://www.parashift.com/c++-faq-lite/compiler-dependencies.html#faq-38.11
Hans
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison