(define-syntax test (syntax-rules () ((test) (define foo 'bar)))) #;1> (test) #;2> foo bar