zh-cn/proj4-scheme-interpreter-of-cs61a-of-ucb-fa21/ #10
Replies: 4 comments 2 replies
-
在今天完整的学习完了cs61a的要求的课程内容,再此十分感谢MartinLwx博主的无私分享以及解答,帮助我度过了许多困难(学习搭子因为实习暂缓了cs61a的进度),我觉得这门课不愧为转码路上真正意义的入门课,丰富的视频内容、作业、lab,以及支持本地运行的ok系统,很大地增加了学习者的兴趣,接下来我想继续学习cs61b,希望博主能给些建议,当然我想从这门课开始,也像博主一样,记录自己的学习内容并分享出来,帮助更多想要学习计算机的人🥳🥳🥳 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Q4 的 (define a some_val),可以通过 .rest.first 拿到对应的 some_val ,这个expressions的list是什么样的? |
Beta Was this translation helpful? Give feedback.
1 reply
-
MartinLwx博主,
非常感谢您的回复!我测试一下。新年快乐!
祝好。
***@***.***
From: MartinLwx
Date: 2025-01-21 01:20
To: MartinLwx/martinlwx.github.io
CC: Jianpinghub; Comment
Subject: Re: [MartinLwx/martinlwx.github.io] zh-cn/proj4-scheme-interpreter-of-cs61a-of-ucb-fa21/ (Discussion #10)
你好,跑了一下测试
scm> (define size 2)
expressions=Pair('size', Pair(2, nil))
expressions.rest=Pair(2, nil)
expressions.rest.first=2
do_define_form 处理的 expressions 应该是去掉了 define 后的内容,比如上面例子的 (size 2),这样和 docstring 的 test case 也是能够对得上的。时间有点久了,我只是看了一下测试和 docstring 做的判断。你可以验证下看我说的对不对。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
zh-cn/proj4-scheme-interpreter-of-cs61a-of-ucb-fa21/
CS61A 的项目四 - 实现一个 Scheme 解释器的题解
https://martinlwx.github.io/zh-cn/proj4-scheme-interpreter-of-cs61a-of-ucb-fa21/
Beta Was this translation helpful? Give feedback.
All reactions