1
代码说明:
说明: 编译原理实验 表达式翻译器:一个中缀表达式到后缀表达式的翻译器 表达式文法及其翻译模式定义如下: expr expr + term {print(‘+’)} | expr - term {print(‘-’)}| term term term * factor {print(‘*’)} | term / factor {print(‘/’)} | factor factor ( expr ) | id {print(id.lexeme)} | num {print(num.value)} (Translator expression: an infix expression to postfix expression translator)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!