chibi-scheme/lib/chibi/syntax-case.sld
Alex Shinn 6cafda8916 Decouple syntax-case from the Chibi core.
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.
2021-08-10 23:19:35 +09:00

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"))