[plt-scheme] Generating top-level definitions from inner syntax

From: Lauri Alanko (la at iki.fi)
Date: Wed Oct 8 18:02:39 EDT 2003

On Wed, Oct 08, 2003 at 05:42:22PM -0400, Eli Barzilay wrote:
> On Oct  9, Lauri Alanko wrote:
> > Ah. I wasn't aware that this was readable syntax. How do I generate
> > such a syntax object from a string?
> 
> Just like numbers or strings -- use (regexp "foo") as the new syntax
> result.

Hm, all right, thanks. But that seems ugly: it requires the _syntax
transformer_ to compile the regexp, when in actuality the regexp
compilation should be done at the _next_ stage. This seems to break the
principle that you shouldn't be able to put non-syntactic data in syntax
expansions...


Lauri Alanko
la at iki.fi


Posted on the users mailing list.