You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
beautiful-racket/beautiful-racket-demo/atomic-taco-demo/main.rkt

16 lines
406 B
Racket

6 years ago
#lang br
6 years ago
(provide #%top-interaction #%module-begin
(rename-out [my-datum #%datum]
[my-datum #%top]
[my-app #%app]))
6 years ago
(define-syntax (my-datum stx)
(syntax-case stx ()
[(_ . THING) #''taco]))
6 years ago
(define-syntax (my-app stx)
(syntax-case stx ()
6 years ago
[(_ FUNC . ARGS) #'(list (my-datum) . ARGS)]))
(module reader syntax/module-reader
atomic-taco-demo)