|
|
@ -1,5 +1,6 @@
|
|
|
|
(module actions mzscheme
|
|
|
|
#lang scheme/base
|
|
|
|
(provide (all-defined))
|
|
|
|
|
|
|
|
|
|
|
|
(provide (all-defined-out))
|
|
|
|
(require syntax/stx)
|
|
|
|
(require syntax/stx)
|
|
|
|
|
|
|
|
|
|
|
|
;; get-special-action: (syntax-object list) syntax-object syntax-object -> syntax-object
|
|
|
|
;; get-special-action: (syntax-object list) syntax-object syntax-object -> syntax-object
|
|
|
@ -10,10 +11,6 @@
|
|
|
|
(else
|
|
|
|
(else
|
|
|
|
(syntax-case (car rules) ()
|
|
|
|
(syntax-case (car rules) ()
|
|
|
|
(((special) act)
|
|
|
|
(((special) act)
|
|
|
|
(module-or-top-identifier=? (syntax special) which-special)
|
|
|
|
(and (identifier? #'special) (module-or-top-identifier=? (syntax special) which-special))
|
|
|
|
(syntax act))
|
|
|
|
(syntax act))
|
|
|
|
(_ (get-special-action (cdr rules) which-special none))))))
|
|
|
|
(_ (get-special-action (cdr rules) which-special none))))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|