Hannah Schroeter wrote:
> (let ((*readtable* (copy-readtable)))
> ; modify it
> (read))
>
> Just love the magic of special variables sometimes.
That much I got myself. What I'm wondering is how to do the modifying
of the readtable. While there are plenty of SET-*-MACRO-CHARACTER
functions, I haven't been able to find any DELETE-*-MACRO-CHARACTER
functions. So how can I go about modifying the readtable.
Thanks for the reply, though :)
Jeff
"Jeff" <···@insightbb.com> writes:
> Hannah Schroeter wrote:
>
>> (let ((*readtable* (copy-readtable)))
>> ; modify it
>> (read))
>>
>> Just love the magic of special variables sometimes.
>
> That much I got myself. What I'm wondering is how to do the modifying
> of the readtable. While there are plenty of SET-*-MACRO-CHARACTER
> functions, I haven't been able to find any DELETE-*-MACRO-CHARACTER
Check out SET-SYNTAX-FROM-CHAR.
-Peter
--
Peter Seibel ·····@javamonkey.com
Lisp is the red pill. -- John Fraser, comp.lang.lisp
"Jeff" <···@insightbb.com> writes:
> Hannah Schroeter wrote:
>
> > (let ((*readtable* (copy-readtable)))
> > ; modify it
> > (read))
> >
> > Just love the magic of special variables sometimes.
>
> That much I got myself. What I'm wondering is how to do the modifying
> of the readtable. While there are plenty of SET-*-MACRO-CHARACTER
> functions, I haven't been able to find any DELETE-*-MACRO-CHARACTER
> functions. So how can I go about modifying the readtable.
> Thanks for the reply, though :)
If a character must be no more a macro character, just set NIL as a
macro character function for it.
--
__Pascal Bourguignon__ http://www.informatimago.com/
Our enemies are innovative and resourceful, and so are we. They never
stop thinking about new ways to harm our country and our people, and
neither do we.