A simple calculator using lex-yacc