[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

reading zl syntax files from cl



   Date: Wed, 6 Nov 91 16:48:08 PST
   From: starnet!bass!lakin@apple.com (Fred Lakin)

   Is there a way to temporarily change (let-bind?) the 
   prevailing lisp-syntax for the duration of a read from file?

(let ((*readtable* si:standard-readtable))
  ...)

Actually, what you might want to do is obey the -*- line, so that your
program will adapt to any file, just as LOAD does.  Look at the source to
SI:READFILE-INTERNAL to see how it does it.  The important operations are
:GENERIC-PATHNAME-AND-PLIST (the fourth value), FS:READ-ATTRIBUTE-LIST,
and FS:FILE-ATTRIBUTE-BINDINGS.

						barmar