racket/collects/r6rs/private/prelims.ss
Matthew Flatt bd97e3e797 r6rs progress
svn: r8775
2008-02-23 14:11:24 +00:00

23 lines
493 B
Scheme

#lang scheme/base
;; PLT Scheme pre-requisites for any phase
(require (for-syntax scheme/base))
(provide
(rename-out [datum #%datum])
#%app #%top #%top-interaction)
;; ----------------------------------------
;; Datum
(define-syntax (datum stx)
(syntax-case stx ()
[(_ . thing)
(if (vector? (syntax-e #'thing))
(raise-syntax-error 'r6rs
"a vector is not an expression"
#'thing)
#`(quote thing))]))