debug-scopes/named-scopes/dummy-lang.rkt
Georges Dupéron 2c8423ac16 Initial commit
2016-12-14 17:44:42 +01:00

10 lines
395 B
Racket

#lang racket
(provide (rename-out [my-module-begin #%module-begin]))
(define-syntax (my-module-begin stx)
(syntax-case stx ()
[(_ real-lang body)
(syntax-case (local-expand #'(module m real-lang body) 'top-level (list)) ()
[(module nm lng (#%plain-module-begin . body2))
#`(#%plain-module-begin
(#%require real-lang)
. #,(values #'body2))])]))