lex yacc flex bison lex与yacc是两个在Unix下的分别作词法分析和语法分析的工具, Linux对应flex与bison。 windows:http://sourceforge.net/projects/unxutils/