Subject: Re: How does one reverse the effect of set-macro-character?
From: rpw3@rpw3.org (Rob Warnock)
Date: Tue, 31 Mar 2009 03:02:04 -0500
Newsgroups: comp.lang.lisp
Message-ID: <fvydnfacB59hUEzUnZ2dnUVZ_vWdnZ2d@speakeasy.net>
Pascal J. Bourguignon <pjb@informatimago.com> wrote:
+---------------
| Andy Chambers <achambers.home@googlemail.com> writes:
| > I'd like to write a macro
| >  (defmacro with-!-syntax (&body body) ...)
| > that temporarily introduces the "!" macro character 
| 
| This is not possible.  
| Any with-!-syntax form will have been READ long before it is MACROEXPANDED.
+---------------

Darn! I was just about to say that! You beat me to it!!  ;-}

Though one thing he might do -- which doesn't actually involve
a readmacro at all -- is do a tree walk of the BODY and look for
symbols starting with "!" and rewrite *those*, something like the
thread we had a while back about extracting args like "$3" & "$*"
from a lambda body to build the arglist...

+---------------
| Have a look at: http://www.nhplace.com/kent/PS/Ambitious.html
+---------------

Good suggestion! That's definitely worth a read.


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607