Sixth

所属分类:编译器/解释器
开发工具:Java
文件大小:8KB
下载次数:0
上传日期:2020-05-19 18:41:54
上 传 者Dora-Wang-p
说明:  假设有以下文法: L-》En E-》E+T E-》E-T E-》T T-》T*F T-》T/F T-》F F-》(E) F-》id 设该文法进行自下而上计算时,打印出四则运算的计算结果。 E、T、F这些非终结符需要综合属性。以L属性的翻译方案为基础,将下表的语义规则嵌套在语法分析的过程中,即实现语法制导的翻译过程。
(Assume the following grammar: L->En E->E+T E->E-T E->T T->T*F T->T/F T->F F->(E) F->id Let the grammar print out the calculation results of four operations when calculating from bottom to top. E. The non terminal characters such as T and f need to integrate attributes. Based on the translation scheme of l-attribute, the semantic rules in the following table are nested in the process of grammar analysis, that is, the translation process of legal translation is realized.)

文件列表:
Sixth (0, 2019-12-09)
Sixth\.classpath (232, 2019-12-09)
Sixth\.project (381, 2019-12-09)
Sixth\bin (0, 2019-12-09)
Sixth\bin\sixth (0, 2019-12-09)
Sixth\bin\sixth\sixth.class (11148, 2019-12-09)
Sixth\src (0, 2019-12-09)
Sixth\src\sixth (0, 2019-12-09)
Sixth\src\sixth\sixth.java (17874, 2019-12-09)

近期下载者

相关文件


收藏者