摘要: Mit-Scheme不支持syntax-case, 只能用它的er-macro-transformer来编写。Mit-Scheme的宏系统比较低级,不支持模式匹配和literal。使用pmatch能得到一个可用的模式匹配,为了简洁这里使用了pmatch,没有pmatch也可以编写同样的宏,但啰嗦一点... 阅读全文
posted @ 2014-10-09 20:07 ysc 阅读(847) 评论(0) 推荐(0) 编辑
摘要: 有三个辅助关键字in, from和to能够 break和continue语法有三种(for n in '(1 2 3 4 5 6 7 8 9 10) (if (> n 8) (break #f)) (if (even? n) (continue #f)) (display n) (displ... 阅读全文
posted @ 2014-10-09 18:35 ysc 阅读(730) 评论(0) 推荐(0) 编辑