3
我尝试执行用DrRacket环境提供的其中一种教学语言(例如Beginning Student)编写的脚本。执行球拍在终端中开始学生脚本而不包裹在模块中
我可以通过包装的代码到一个模块中(就像DrRacket一样)实现这一目标:
#reader(lib "htdp-beginner-reader.ss" "lang")((modname my_module) (read-case-sensitive #t) (teachpacks()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f() #f)))
;; my code goes here
然而,这将是对我更倾向于不换我的代码到一个模块中。是否有可能通过传递命令行参数(或以任何其他方式)来实现该目标?
这个解决方案已经足够满足我的需求了,谢谢。你能分享一个链接到文档部分,揭示一个'asl','bsl','bsl +','isl','isl +'list? – Robson
事实上,我只是通过挖掘'Racket \ share \ pkgs \ htdp-lib \ htdp'才发现它。 –