[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help in writing infix macro in CL.
- To: "S. Sridhar" <sridhar%tekecs%tektronix.csnet@CSNET-RELAY.ARPA>
- Subject: Help in writing infix macro in CL.
- From: "Scott E. Fahlman" <Fahlman@C.CS.CMU.EDU>
- Date: Tue, 06 May 1986 12:52:00 -0000
- Cc: common-lisp@SU-AI.ARPA
- In-reply-to: Msg of 5 May 1986 19:27-EDT from S. Sridhar <sridhar%tekecs%tektronix.csnet at CSNET-RELAY.ARPA>
- Sender: FAHLMAN@C.CS.CMU.EDU
I don't think that you can write an infix reader just by defining new
character macros for #\+ and friends. This new reader needs to get at
the whole expression, either because it is caled directly by your
program or because it is invoked when you see that first #\(, assuming
that all your top-level expressions are parenthesized. Of course, the
new reader can be built using the old one, or more specialized built-in
functions, to do most of the work, but it can't wait until you hit an
infix operator before it gets invoked.