简体   繁体   English

DrScheme中的SICP中使用哪种语言?

[英]Which language in DrScheme for SICP?

I have been using the Module for SICP in DrScheme 4.2 but which language has the best support for SICP in DrScheme? 我一直在DrScheme 4.2中使用SICP模块,但是哪种语言在DrScheme中对SICP的支持最好?

Has anyone here tried this ? 有没有人在这里尝试过这个

Thanks. 谢谢。

I don't think you need anything but R5RS which is available in DrScheme via Language > Choose Language... . 我认为您只需要R5RS ,它可以在DrScheme中通过“ Language > Choose Language...

You might want to allow redefinition of bindings. 您可能要允许重新定义绑定。 After you have selected R5RS, click on " Show Details " and uncheck " Disallow redefinition of initial bindings ". 选择R5RS后,单击“ Show Details ”,然后取消选中“ Disallow redefinition of initial bindings ”。

Some places in the text uses an error function, which is not available in R5RS. 文本某些 地方使用了error功能,R5RS中不提供该功能。 In these cases you can use srfi-23 . 在这些情况下,您可以使用srfi-23

Another option is to simply use the "scheme" module language. 另一种选择是简单地使用“方案”模块语言。 Select "Module" as your language of choice and start your source files with #lang scheme or #lang scheme/base . 选择“模块”作为您选择的语言,并使用#lang scheme#lang scheme/base启动源文件。

For the chapter " Example: A Picture Language " you can try this package (I have not tried it myself, so I don't know how well it works). 对于“ 示例:一种图片语言 ”一章,您可以尝试使用此软件包 (我自己还没有尝试过,所以我不知道它的效果如何)。

SICP Support for DrRacket SICP对DrRacket的支持

This package implements support in PLT's DrRacket for Abelson and Sussman's Structure and Interpretation of Computer Programs (SICP) 2nd Edition textbook, for students who wish to use DrRacket's tools for the SICP programming assignments. 该软件包在PLT的DrRacket中为Abelson和Sussman的《计算机程序的结构和解释》(SICP)第二版教科书中提供了支持,适用于希望使用DrRacket的工具进行SICP编程作业的学生。

http://www.neilvandyke.org/racket-sicp/ http://www.neilvandyke.org/racket-sicp/

I am at the exact same place in SICP, and am using - 'Essentials of Programming Languages' as the language. 我在SICP中位于完全相同的位置,并且正在使用-“编程语言的本质”作为语言。 It has not caused any problems yet. 它尚未引起任何问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM