[honu] add syntax-rules analog

This commit is contained in:
Jon Rafkind 2012-10-30 15:01:59 -06:00
parent 0c892b5b0d
commit 9c9f269765

10
collects/honu/syntax.rkt Normal file
View File

@ -0,0 +1,10 @@
#lang honu
/* Standard syntax-rules but as a macro-defining form */
provide macro_rules;
macro macro_rules(){
name:identifier (literal ...){ pattern ... }{ template ... }
} {
syntax(macro name (literal ...){ pattern ... }{ syntax(template ...) })
}