integrate yacc into main program