Modified lex, yacc and main