chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] [5] Make syntax-rules "fully" self-contained


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] [5] Make syntax-rules "fully" self-contained
Date: Thu, 8 Jun 2017 21:19:24 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

Hi all,

Here's a reasonably simple patch that moves the expansion-time support
helpers for ye olde syntax-rules into an internal module in synrules.scm.
process-syntax-rules is also stripped from its ##sys# prefix, since
that's no longer required with the new support for fully qualified symbols.

This shouldn't offend anyone because the expansion of syntax-rules itself
is a macro that requires er-macro-transformer.  Given that you need to
link expand.scm into a program that uses er-macro-transformer, these
helpers will also be available and do not have to be in library.scm.

Of course it's not 100% self-contained because the expansion still refers
to other identifiers from library.scm, but those are all standard Scheme.

Cheers,
Peter

Attachment: 0001-Make-syntax-rules-fully-self-contained.patch
Description: Text Data

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]