Skip to content

Commit

Permalink
[tests & chore] added a changelog and fixed functions without return …
Browse files Browse the repository at this point in the history
…stmt in tests
  • Loading branch information
chiakicage committed Apr 27, 2024
1 parent 4c00772 commit 4e94a38
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 更新日志

## 2024-4-27

- 修正了 lab1 测试中 `func_array1.sy` 符合语法但不符合语义的问题 [commit#4c00772b](https://git.zju.edu.cn/accsys/accipit/-/commit/4c00772bb3334f5e918214bec2459cd16a374d3c)

1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ theme:
name: Switch to light mode
nav:
- 主页: index.md
- 更新日志: changelog.md
- Lab 0 环境配置: environment.md
- Lab 1 词法与语法分析: syntax.md
- Lab 2 语义分析: semantics.md
Expand Down
1 change: 1 addition & 0 deletions tests/lab1/var_defn2.sy
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ int b = 5;
int main(){
int a = 5;
putint(a + b);
return 0;
}
1 change: 1 addition & 0 deletions tests/lab2/var_defn.sy
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
int main() {
int a = 1, b = a;
return 0;
}

0 comments on commit 4e94a38

Please sign in to comment.