「展開した結果に...を含める」には (... ...) と書くことにR6RSではなっています。
R6RS と聞いて思い浮かんだのは、IronScheme, mosh, Ypsilon でした。
取りあえず今回は、すでにインストール済みの IronScheme で試してみました。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; R6RS | |
(define-syntax reverse-and-quote-list | |
(syntax-rules () | |
((_ lis) | |
(letrec-syntax | |
((helper | |
(syntax-rules () | |
((_ () (backw (... ...))) | |
'(backw (... ...))) | |
((_ (arg rest (... ...))(backw (... ...))) | |
(helper (rest (... ...))(arg backw (... ...))))))) | |
(helper lis ()))))) |
どうやら意図通り動いたようです。
追記
IronScheme は Emacs インターフェースもあったりします。以前少し試したことが・・・。
0 件のコメント:
コメントを投稿