资 源 简 介
编写语法分析程序,实现对算术表达式的语法分析。要求所分析算数表达式由如下的文法产生:
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