- 3
- 0
- 约9.27千字
- 约 62页
- 2019-02-17 发布于广东
- 举报
string gen_if_then_else( TreeNode * syntaxTree, int next ) { /* S-if E then Seq1 else Seq2 end * E.ture=newlabel; E.false=newlabel; Seq1.next=S.next; Seq2.next=S.next; * S.code =E.code || Label E.true || Seq1.code || goto S.next || Label E.fasle || Seq2.code || Label S.next int e_true = newLabel(); int e_false = newLabel(); string code = gen_judge( syntaxTree.child[0], e_true, e_false ) + label + e_true + gen_stmt_seq( syntaxTree.child[1], next ) + goto+ next + label+e_false+ gen_stmt_seq( syntaxTree.child[2],next) + label+ next; return code; } 3.2 TINY编译器的语法
您可能关注的文档
最近下载
- 2026陕西延长石油(集团)有限责任公司高校毕业生春季招聘笔试历年参考题库附带答案详解.docx VIP
- 螺母理论重量表.pdf VIP
- 济源市水系综合治理(一期)工程PPP项目.DOC VIP
- 国家铁路局《铁路建设工程生产安全重大事故隐患判定标准》解读与宣贯.pptx VIP
- GB_T 8564-2023 水轮发电机组安装技术规范.pdf VIP
- 《高等教育心理学》复习资料.doc VIP
- 三基临床解剖试题及答案.doc VIP
- 2025至2030中国固态开关行业发展研究与产业战略规划分析评估报告.docx VIP
- 新版特殊作业票模板-根据GB30871-2022修订.doc VIP
- 数学地质讲义.ppt VIP
原创力文档

文档评论(0)