在调用yyparse()之前加上如下代码:
extern int yydebug;
yydebug = 1;
编译bison时,加上debug,如下:
# bison --debug parser.y