3e5de399a7
I've just moved the relevant code into the functional-tests dir.
19 lines
474 B
Scheme
19 lines
474 B
Scheme
|
|
#!r6rs
|
|
(library (srfi private auxiliary-keyword)
|
|
(export define-auxiliary-keyword define-auxiliary-keywords)
|
|
(import (scheme))
|
|
|
|
(define-syntax define-auxiliary-keyword
|
|
(syntax-rules ()
|
|
[(_ name)
|
|
(define-syntax name
|
|
(lambda (x)
|
|
(syntax-violation 'name "misplaced use of auxiliary keyword" x)))]))
|
|
|
|
(define-syntax define-auxiliary-keywords
|
|
(syntax-rules ()
|
|
[(_ name* ...)
|
|
(begin (define-auxiliary-keyword name*) ...)])))
|
|
|