【发布时间】:2017-10-03 15:40:03
【问题描述】:
我尝试执行用 DrRacket 环境提供的一种教学语言(例如初学者)编写的脚本。
我可以通过将代码包装到一个模块中来实现这一点(就像 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
但是,我最好不要将我的代码包装到模块中。是否可以通过传递命令行参数(或以任何其他方式)来实现?
【问题讨论】:
标签: command-line terminal racket command-line-arguments htdp