ported main.c for lex.yy.c