|
|
@ -1,6 +1,6 @@
|
|
|
|
(module actions mzscheme
|
|
|
|
(module actions mzscheme
|
|
|
|
(provide (all-defined))
|
|
|
|
(provide (all-defined))
|
|
|
|
;(require (lib "stx.ss" "syntax"))
|
|
|
|
(require (lib "stx.ss" "syntax"))
|
|
|
|
|
|
|
|
|
|
|
|
;; get-special-action: (syntax-object list) syntax-object syntax-object -> syntax-object
|
|
|
|
;; get-special-action: (syntax-object list) syntax-object syntax-object -> syntax-object
|
|
|
|
;; Returns the first action from a rule of the form ((which-special) action)
|
|
|
|
;; Returns the first action from a rule of the form ((which-special) action)
|
|
|
@ -10,7 +10,7 @@
|
|
|
|
(else
|
|
|
|
(else
|
|
|
|
(syntax-case (car rules) ()
|
|
|
|
(syntax-case (car rules) ()
|
|
|
|
(((special) act)
|
|
|
|
(((special) act)
|
|
|
|
(module-identifier=? (syntax special) which-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))))))
|
|
|
|
|
|
|
|
|
|
|
|