We don't know how to do that, all my ideas comes from the calculator tutorial - page 19~.
please read it. Also the symbol table its a pure data structure issue, we need a hash table or whatever in c.
boolean expressions and operators are missing in both lex regexes and yacc grammer
we need to check for operators in the lex, and add them to your grammer rules