卫生的宏的翻译方法

类别:编程语言 点击:0 评论:0 推荐:

Semantics: An instance of `syntax-rules' produces a new macro transformer by specifying a sequence of hygienic rewrite rules. A use of a macro whose keyword is associated with a transformer specified by `syntax-rules' is matched against the patterns contained in the <syntax rule>s, beginning with the leftmost <syntax rule>. When a match is found, the macro use is transcribed hygienically according to the template.

语义:syntax-rules 的实例通过定义“ 卫生的” 改写规则序列, 生成一个新的宏转换器。关键字与 syntax-rules 定义的转换器相关联的宏的使用,将与 hsyntax rulei 中的模式相匹配。其匹配方法是,从最左边的hsyntax rulei 开始,当发现匹配时,宏的使用就被
“ 卫生地”依照模板转译。

本文地址:http://com.8s8s.com/it/it24567.htm