文件名称:test5
介绍说明--下载内容均来自于网络,请自行研究使用
编写语法分析程序,实现对算术表达式的语法分析。要求所分析算数表达式由如下的文法产生:
E->E+T|E-T|T
T->T*F|T/F|F
F->id|(E)|num-Write parser to achieve parsing of arithmetic expressions. Requirements analysis arithmetic expressions generated by the following grammar: E-> E+ T | ET | T T-> T* F | T/F | F F-> id | (E) | num
E->E+T|E-T|T
T->T*F|T/F|F
F->id|(E)|num-Write parser to achieve parsing of arithmetic expressions. Requirements analysis arithmetic expressions generated by the following grammar: E-> E+ T | ET | T T-> T* F | T/F | F F-> id | (E) | num
(系统自动生成,下载前可以参看下载内容)
下载文件列表
test5.cpp