this link: http://aquamentus.com/flex_bison.html
and this link: https://blog.csdn.net/GW569453350game/article/details/47807123
Step1.
在bison中定义需要使用的token, 并且根据上下文无关文法BNF定义规则
Step2.
在 flex 中定义 token 的规则, yytext -> yylval (union) or by yyset_extra()…
Step3.
在 bison gramma 解析的 action 中处理 yylval: makeNode, 生成语法树