|yacc grammar / expressions parsed wrong ? email@example.com (2008-02-18)|
|Re: yacc grammar / expressions parsed wrong ? firstname.lastname@example.org (chresan) (2008-02-21)|
|Date:||Thu, 21 Feb 2008 15:09:37 -0800 (PST)|
|Posted-Date:||24 Feb 2008 00:39:34 EST|
My results were probably caused by a bug of the parser generator
rather then in a wrong grammar. Instead of assigning to '$$' I tried
using a custom stack for building the expressions and then the result
tree was correct.
> [The usual problem is that you're not allocating space properly for
> the tree nodes you create. And please spell it "grammar". -John]
Thanks for the hint.
Return to the
Search the comp.compilers archives again.