[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
LINEREAD
- To: TOURETZKY at CMU-10A
- Subject: LINEREAD
- From: JONL at MIT-MC (Jon L White)
- Date: Thu, 31 May 79 08:13:00 GMT
- Cc: JONL at MIT-MC, (BUG LISP) at MIT-MC, FAHLMAN at MIT-MC
- Original-date: 31 MAY 1979 0413-EDT
Some time ago you had an anomaly with trying to read a "line"
of s-expressions. The problem was primarily in that the reader
tosses out the "white-space" character which terminates an atom,
and thus your TYIPEEK didn't see the expected <cr>. I have
written a full LINEREAD, following the style of READLINE, and
put it on the LIBDOC and LIBLSP directories at MC, and on
the C380ML5P directory at CMUA. You might peruse the source
(LINERE.LSP) to see all the gory details. Note that
(TYIPEEK 'T <file>) will scan characters, tossing out worthless
ones, until some character is encountered which will "start"
an s-expression.