Saving CLOS objects处的sds的评论提供了对Common Lisp Open Code Collection(CLOCC)文件(closio.lisp)的引用,用于打印读取&编写CLOS对象。安装软件的说明位于Installation of CLOCC。但是,以前没有使用过CLOCC,我想在设置读/写CLOS对象时需要一些额外的指导。到目前为止,这是我的init文件(.clinit)的新增内容:
(in-package :cl-user)
(setq *clocc-root* "D:\\clocc\\")
(load "D:\\clocc.fasl")
(load
(compile-file ;warns about |make|::COMPILED-FILE-P being undefined
(translate-logical-pathname
"clocc:src;defsystem;defsystem")))
(dolist (s '("clocc:src;cllib;base" "clocc:src;port;sys"))
(mk:add-registry-location (translate-logical-pathname s)))
接下来要添加的内容的说明。
答案 0 :(得分:1)
说明已经过时了。遗憾。
installation instructions现在说(我删除了您不需要的系统):
(compile-file "c:/gnu/clocc/clocc") ; or whatever ...
(load *)
;; * load the defsystem facility
;; most lisps come with "asdf"; if this fails, get it yourself from
;; https://common-lisp.net/project/asdf/
(require "asdf")
;; * compile some systems
(asdf:compile-system "port")
(asdf:compile-system "cllib")
...
您需要关注asdf instructions:
$ mkdir -p ~/.config/common-lisp/source-registry.conf.d/
$ echo '(:tree "c:/gnu/clocc/")' > asdf.conf