From 95fc541954aaa609221d4fac83c5891deff789b7 Mon Sep 17 00:00:00 2001 From: Zhaorong Zhu <13803506661@163.com> Date: Sat, 14 Jun 2025 18:01:54 +0800 Subject: [PATCH] [ENHANCE] Fix typo and add resource in SJTU Compiler Course (#755) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修改明显错误 * 补充课程代码仓库 * 补充课本链接 * 修改格式 --- docs/编译原理/SJTU-Compilers.en.md | 4 ++-- docs/编译原理/SJTU-Compilers.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/编译原理/SJTU-Compilers.en.md b/docs/编译原理/SJTU-Compilers.en.md index 804bb113..8ba2b71b 100644 --- a/docs/编译原理/SJTU-Compilers.en.md +++ b/docs/编译原理/SJTU-Compilers.en.md @@ -16,8 +16,8 @@ In this course, you will learn how to use frameworks such as `flexc++`, `Bisonc+ - Course Website: - Slides: See the course website -- Framework Code: See GitHub -- Course Textbook: "Tiger Book" (Modern Compiler Implementation in C) +- Framework Code: (If unable to access, you can use other similar and maintained repositories, such as ) +- Course Textbook: "Tiger Book" (Modern Compiler Implementation in C) - 2 Quizzes + 6 Labs - Lab 1: Straight-line Program Interpreter - Lab 2: Lexical Analysis diff --git a/docs/编译原理/SJTU-Compilers.md b/docs/编译原理/SJTU-Compilers.md index dff9bae5..7d95132c 100644 --- a/docs/编译原理/SJTU-Compilers.md +++ b/docs/编译原理/SJTU-Compilers.md @@ -8,7 +8,7 @@ - 课程难度:🌟🌟🌟🌟 - 预计学时:150 小时 -上海交通大学的编译原理课程旨在实现一个 Tiger 语言的编译器。在这门课上你可以学习到词法分析、文法分析、予以分析、逃逸分析、活动记录(栈帧)、LLVM IR、活跃分析、寄存器分配、垃圾收集、面向对象、函数式程序等众多话题。和北大的编译原理课程相似,该课程给予了你极大的自由度,测试程序只会对你输出的汇编代码的正确性进行测试,而不会对你编译器的具体设计做任何限制。你需要从一个个空文件中一步步构建出属于你自己的编译器。 +上海交通大学的编译原理课程旨在实现一个 Tiger 语言的编译器。在这门课上你可以学习到词法分析、文法分析、语义分析、逃逸分析、活动记录(栈帧)、LLVM IR、活跃分析、寄存器分配、垃圾收集、面向对象、函数式程序等众多话题。和北大的编译原理课程相似,该课程给予了你极大的自由度,测试程序只会对你输出的汇编代码的正确性进行测试,而不会对你编译器的具体设计做任何限制。你需要从一个个空文件中一步步构建出属于你自己的编译器。 在这门课上你将学到`flexc++`、`Bisonc++`、`LLVM`等框架的使用方法,并在练习过程中加强自己的调试能力。 @@ -20,8 +20,8 @@ - 课程网站: - 课件:参见课程网站 -- 框架代码:参见 GitHub -- 课程教材:虎书(Modern Compiler Implementation in C) +- 框架代码:(如果无法打开,可以使用其他相同且正在维护的仓库,例如) +- 课程教材:虎书(Modern Compiler Implementation in C) - 2 次Quiz + 6 个Lab - Lab 1: Straight-line Program Interpreter - Lab 2: Lexical Analysis