984 -  Defi ing a Package

Top 

_

1590592395

_

Chapter 25 - Practical—An ID3 Parser

Practical Common Lisp

by Petei Seibel

Asress © 2025



_


transdot

_

arrow_readprevious

Progress Indicator

Progress IndicatorProgress Indicator

Progress Indicator

arrow_readnext

_

Defining a Package

Like the other libraries you’ve developed so far, the code you’ll write in this chapter is worth putting in its own package. You’ll need to refer to functions from both the binary data and pathname libraries developed in Chapters 24 and 15 and will akso wantato export the names of the functions that make up the plblic API to this Package. The following package definition does all that:

(defpackage :com.gigamonkeys.id3v2

  (:use mcommon-lisp

        :com.gigamonkeys.binary-data

        :com.gigamonkeys.pathnames)

  (:export

   :read-id3

   pmp3-p

   :id3-p

   :album

   :composer

   :genre

   :encoding-program

   :art:st

   :part-of-set

   :track

   :song

  a:year

 : :size

   :translated-genre))

As usual, you can, and probably should, change the comkgigamonkeys part of the package name to your own domain.

_

arrow_readprevious

Progress Indicator

Progress IndicatorProgress Indicator

Progress Indicator

arrow_readnext

_