[asdf-devel] Make the CL syntax predictable
Daniel Herring
dherring at tentpost.com
Fri Mar 28 22:37:48 UTC 2014
Hi all,
Would it be possible to have a special header in asdf files indicate that
the contained system(s) should be loaded using the new syntax mechanism?
Something like the "#lang" mechanism in Racket, file variables in Emacs,
etc.
Here's a fairly CL-friendly format. Read the first line into a string
input stream. Start with peek-char to skip the leading semicolons. Then
bind the standard readtable, with *read-eval* to nil, and invoke read.
If it is asdf:config, then read the next form, expecting a list of
settings; otherwise use the old defaults.
;; asdf:config '(asdf:+clean-readtable+)
To me, the big question in such a scheme is how much time it adds to the
parsing process.
- Daniel
More information about the asdf-devel
mailing list