modify the Makefile for the `make test`
add y.output, y.tab.h into Makefile and gitignore
use lex.l
fix lex scanner