mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
This restores third-party (ab)users of the Chibi macro system such as in https://gist.github.com/baguette/2632464, while allowing us to break those uses in more interesting ways. It also keeps the core slightly smaller (both in C and Scheme) and speeds up the macro expansion process.
19 lines
795 B
Scheme
19 lines
795 B
Scheme
(define-library (chibi syntax-case)
|
|
(export ... _ free-identifier=? bound-identifier=? identifier?
|
|
syntax-case syntax quasisyntax unsyntax unsyntax-splicing
|
|
datum->syntax syntax->datum
|
|
generate-temporaries with-syntax syntax-violation
|
|
with-ellipsis ellipsis-identifier?
|
|
define-syntax let-syntax letrec-syntax)
|
|
(import (rename (chibi)
|
|
(define-syntax %define-syntax)
|
|
(let-syntax %let-syntax)
|
|
(letrec-syntax %letrec-syntax))
|
|
(only (chibi ast)
|
|
env-cell macro? macro-aux macro-aux-set!
|
|
procedure-arity procedure-variadic?)
|
|
(only (meta) environment)
|
|
(srfi 1)
|
|
(srfi 11)
|
|
(srfi 39))
|
|
(include "syntax-case.scm"))
|