Source: https://www.youtube.com/watch?v=pMNsedoGoa4
主要是实践部分。
有几个注意点:
1.如果需要加入在输入的时候上下左右cursor 需要lex include y.tab.h,这个文件是由yacc生成的。

2. 在yacc中 seporater 用 %%。在%%(C declaration)中 yacc main 函数语法类c。着重说一下yacc的语法。
FIRST PART
%%
production action......
%%
THIRD PART
above is the Input, First part contains the declaration, the third part is the implementation in c.


P.S.
