Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
2
2022fall-Compiler_CMinus
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李晓奇
2022fall-Compiler_CMinus
Commits
a0bc08d2
Commit
a0bc08d2
authored
Sep 19, 2022
by
陈清源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Documentations/1-parser/README.md
parent
3600d3e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Documentations/1-parser/README.md
Documentations/1-parser/README.md
+6
-6
No files found.
Documentations/1-parser/README.md
View file @
a0bc08d2
...
...
@@ -104,12 +104,12 @@ int main(void) {
## 2.1 思考题
本部分不计入评分,出题的本意在于想要帮助同学们加深对实验细节的理解,欢迎有兴趣和余力的同学在报告中写下你的思考答案,或者在
issue
中分享出你的看法。
本部分不计入评分,出题的本意在于想要帮助同学们加深对实验细节的理解,欢迎有兴趣和余力的同学在报告中写下你的思考答案,或者在
论坛
中分享出你的看法。
1.
[
基础知识
](
./Basics.md
)
中的计算器例子的文法中存在左递归,为什么
`bison`
可以处理?(提示:不用研究
`bison`
内部运作机制,在下面知识介绍中有提到
`bison`
的一种属性,请结合课内知识思考)
2.
请在代码层面上简述下
`yylval`
是怎么完成协同工作的。(提示:无需研究原理,只分析维护了什么数据结构,该数据结构是怎么和
`$1`
、
`$2`
等联系起来?)
3.
在计算器例子中,除 0 时会发生什么?如果把
`yylval`
修改为整形(
`int`
,
`long`
等),这时候又会发生什么?
4.
能否修改计算器例子的文法,使得它支持除数0规避功能?
(提示:这道题很难!尚未有同学给出正确答案。)
4.
能否修改计算器例子的文法,使得它支持除数0规避功能?
## 3. 实验要求
...
...
@@ -235,20 +235,20 @@ int main(void) {
*
提交方式:
*
代码提交:本次实验需要在希冀课程平台上发布的
[
实验一
](
链接
)
提交自己仓库的 gitlab 链接(注:由于平台限制,请提交http协议格式的仓库链接。例:学号为 PB011001 的同学,Lab1 的实验仓库地址为
`http://202.38.79.174/PB011001/2022fall-compiler_cminus.git`
),我们会收集最后一次提交的评测分数,作为最终代码得分。
*
代码提交:本次实验需要在希冀课程平台上发布的
作业
[
Lab1-代码提交
](
http://cscourse.ustc.edu.cn/assignment/index.jsp?courseID=17&assignID=54
)
提交自己仓库的 gitlab 链接(注:由于平台限制,请提交http协议格式的仓库链接。例:学号为 PB011001 的同学,Lab1 的实验仓库地址为
`http://202.38.79.174/PB011001/2022fall-compiler_cminus.git`
),我们会收集最后一次提交的评测分数,作为最终代码得分。
*
实验评测
*
除已提供的 easy, normal, hard 数据集之外,平台会使用额外的隐藏测试用例进行测试。
*
报告提交:将
`Reports/1-parser/README.md`
导出成 pdf 文件单独提交到
[
实验一报告
](
链接
)
。
*
报告提交:将
`Reports/1-parser/README.md`
导出成 pdf 文件单独提交到
[
Lab1-报告提交
](
http://cscourse.ustc.edu.cn/assignment/index.jsp?courseID=17&assignID=54
)
。
*
提交异常:如果遇到在平台上提交异常的问题,请通过邮件联系助教,助教将收取截止日期之前,学生在 gitlab 仓库最近一次 commit 内容进行评测。
*
迟交规定
*
Soft Deadline:2022-
10-03
23:59:59 (UTC+8)
*
Soft Deadline:2022-
09-30
23:59:59 (UTC+8)
*
Hard Deadline:2022-10-
10
23:59:59 (UTC+8)
*
Hard Deadline:2022-10-
07
23:59:59 (UTC+8)
*
补交请邮件提醒 TA:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment