[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guess what.
- Subject: Re: guess what.
- From: George J. Carrette <GJC at MIT-MC>
- Date: Wed ,4 Feb 81 00:38:00 EDT
Setting up "&" to have a readmacro function
can give ( &REST BAR) => (REST BAR)
(&OPTIONAL A B C D E &REST K) => ((OPTIONAL A B C D E) (REST K))
or whatever else you want.
I've tried it in maclisp, and its quite easy for it
to TYIPEEK for the next "&" or ")" so that it can know what
to do. If one is willing to have "read-tokens" in the reader,
then then the entire character "&" need not be commited.
Either way you look at it, the reader is a much more natural
place to put such a highly syntactic frobulations as &Keywords.
-gjc