Hi,
I am learning to use bison. I read bison 2.1 online manual posted on
http://www.gnu.org/software/bison/manual/html_mono/bison.html. There is an
example in section 2.1 "Reverse Polish Notation Calculator". I typed in all the
syntax rule and actions. I ran bison rpcalc.y and compile the output
rpcalc.tab.c successful. When I try to run the program, it does not give
correct result. No matter what expression I input, it returns 2.121995791e-314.
For example,
1 2 +
2.121995791e-314
It seems that the value of yylval is not passed to variables $1 and $2 in the
action. Does anybody try that example successfully?
By the way, I am using bison 2.1.
Regards,
M
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison