如何从“Practical Common Lisp”一书中加载quicklisp来加载代码?

时间:2016-05-22 09:36:36

标签: lisp common-lisp quicklisp practical-common-lisp

图书code附带的Practical Common Lisp包含asdf个文件。如何使用Quicklisp加载此代码?

1 个答案:

答案 0 :(得分:8)

  1. http://www.gigamonkeys.com/book/practicals-1.0.3.tar.gz的内容复制到~/quicklisp/local-projects/
  2. 在REPL
  3. 处致电(ql:register-local-projects)
  4. 从所需章节加载代码(仅测试第25章)
  5. CL-USER> (ql:quickload "id3v2")
    To load "id3v2":
      Load 1 ASDF system:
        id3v2
    ; Loading "id3v2"
    [package com.gigamonkeys.macro-utilities].........
    [package com.gigamonkeys.binary-data].............
    [package com.gigamonkeys.pathnames]...............
    [package com.gigamonkeys.id3v2]...............
    ("id3v2")
    CL-USER> (in-package "COM.GIGAMONKEYS.ID3V2")
    ID3V2> (show-tag-header "/path/to/xyz.mp3")
    ...