fix some bugs in tinycalc.y and it runs correctly now