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

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Oct 8 17:10:12 EDT 2003

At Thu, 9 Oct 2003 00:02:03 +0300, Lauri Alanko wrote:
> Any suggestions on how something like this could be accomplished? I'd
> prefer this sort of thing to be completely invisible to the user, but I
> can see that maybe it requires either defining one's own language, or
> embedding everything into a huge top-level macro that "grabs" the
> generated extra variables from within...

That's the only strategy I know. I've never actually tried to implement
it.

If you only care about MzScheme regexps, then this lifting happens to
be built in, sortof: use #rx"-?[0-9]+".

Matthew



Posted on the users mailing list.