-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f4cc6c
commit 6203a66
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 浙江大学24年春夏编译原理实验 | ||
|
||
仓库目录结构: | ||
|
||
```bash | ||
├── examples/ # SysY 与 Accipit 样例 | ||
├── docs/ # 实验文档 | ||
├── mkdocs.yml | ||
└── src/ # 解释器源码 | ||
``` | ||
|
||
## 实验介绍 | ||
具体来说整个实验分为五个小实验: | ||
|
||
- 环境配置与测试用例编写:配置实验环境,学习 SysY 语法。 | ||
- 词法分析与语法分析: 实现词法分析和语法分析,将源代码转化为抽象语法树。 | ||
- 语义分析:实现符号表,基于抽象语法树进行语义分析。 | ||
- 中间代码生成:把分析后的抽象语法树转化为实验定义的中间代码。 | ||
- 目标代码生成:将中间代码转化为 RISC-V 64 汇编代码。 |