bison的结构%{
//自定义部分,会直接输出到.c文件中
%}
/* declare tokens*/
//声明token
%token NUMBER
%%
//语法规则部分
expr: NUMBER
2021-11-24