代码拉取完成,页面将自动刷新
(require racket/contract
racket/class
racket/unit
racket/dict
racket/include
racket/pretty
racket/math
racket/match
racket/shared
racket/set
racket/list
racket/vector
racket/string
racket/bytes
racket/function
racket/path
racket/place
racket/future
racket/port
racket/promise
racket/bool
racket/stream
racket/sequence
racket/local
racket/format
racket/date
(for-syntax racket/base)
math/base
(except-in racket/draw make-color make-pen)
2htdp/image
mrlib/gif
(only-in mrlib/image-core render-image))
(define-syntax-rule (define-name-command name body)
(define-syntax name
(lambda (stx)
(syntax-case stx ()
[name (identifier? (syntax name)) (syntax body)]))))
; --- command ---
(struct command (name args) #:transparent)
(define-syntax def/boot
(syntax-rules ()
((_ . def)
(begin
(define . def)
(define expr (cons (quote define) (quote def)))
(define out (open-output-string))
(display expr out)
(command "save-boot-code"
(hash 'code (get-output-string out)))))))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。