
8 Apr
2015
8 Apr
'15
8:57 p.m.
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