Description: // 语法制导翻译器设计示范程序
// ----- 算数表达式四元式翻译(递归子程序法)
// 要求:1. 读懂该程序,并上机调试成功;
// 2. 运行该程序,输入源表达式(字母:表示变量,数字:表示常数。)
// 3. 反复运行,考查输出的各种四元式的正确性。
// 4. 实验报告内容:表达式的属性翻译文法;递归子程序框图;
// 运行结果的记录(输出的三元式不得少于10条!)
-/ / syntax translation guided design model procedures / / ----- count expressions four yuan-translation (recursive son Procedure Act) / / : 1. to understand the procedures and Machine success; / / 2. to run the program. input source expression (in alphabetical : Variables said, the figure : Constant said.) / / 3. repeated running, examine the output of the four yuan-correctness. / / 4. Experimental contents of the report : Expressions of attribute grammar translation; Recursive subroutine diagram; / / operating results of the records (3-output should not be less than 10!) Platform: |
Size: 18493 |
Author:邓可 |
Hits:
Description: // 语法制导翻译器设计示范程序
// ----- 算数表达式四元式翻译(递归子程序法)
// 要求:1. 读懂该程序,并上机调试成功;
// 2. 运行该程序,输入源表达式(字母:表示变量,数字:表示常数。)
// 3. 反复运行,考查输出的各种四元式的正确性。
// 4. 实验报告内容:表达式的属性翻译文法;递归子程序框图;
// 运行结果的记录(输出的三元式不得少于10条!)
-//syntax translation guided design model procedures//----- count expressions four yuan-translation (recursive son Procedure Act)// : 1. to understand the procedures and Machine success;// 2. to run the program. input source expression (in alphabetical : Variables said, the figure : Constant said.)// 3. repeated running, examine the output of the four yuan-correctness.// 4. Experimental contents of the report : Expressions of attribute grammar translation; Recursive subroutine diagram;// operating results of the records (3-output should not be less than 10!) Platform: |
Size: 18432 |
Author:邓可 |
Hits: