1

我目前正在尝试掌握asdf,但遗憾的是(但显然并不少见)标准用户指南并没有任何帮助,因为它确实解释了(我猜)相关部分,但错过了分发一些包含评论的扩展示例,所以新手可以看到这些命令的运行情况。

我对语法的用法:defsystem-depends-on:components 部分特别感兴趣。defsystem

因此问题是:有没有比标准用户指南更复杂和对新手友好的 asdf 用户指南?

4

2 回答 2

2

我没有时间写一个全面的教程(而且我没有全面的理解),但我可以提供一个链接和我拥有的项目的副本。

(asdf:defsystem #:cl-yahoo-finance
  :depends-on ( #:drakma #:babel #:cl-csv #:yason #:url-rewrite)
  :components ((:file "cl-yahoo-finance"))  ;;cl-yahoo-finance is cl-yahoo-finance.lisp, in the same directory.
  :name "cl-yahoo-finance"
  :version "3.2"
  :maintainer "Paul Nathan"
  :author "Paul Nathan"
  :licence "LLGPL"
  :description "CL interface to Yahoo's finance API"
  :long-description "Common Lisp interface to Yahoo's finance API, available over the web. See usage.lisp for example code.")

https://github.com/pnathan/cl-yahoo-finance/blob/master/cl-yahoo-finance.asd

于 2012-06-12T18:29:55.263 回答
0

你有什么具体问题吗?

:defsystem-depends-on只是在处理系统定义之前必须加载的一些系统。从语法中您可以看到系统名称是字符串或符号。

:components- 很多用途都比较简单。例如,它会列出一堆文件。

另见ASDF DEFSYSTEM 的语法。

于 2012-06-11T17:00:21.467 回答