Skip to Content
Practical Common Lisp
book

Practical Common Lisp

by Peter Seibel
April 2005
Beginner to intermediate
528 pages
16h 20m
English
Apress
Content preview from Practical Common Lisp

CHAPTER 24Practical: Parsing Binary Files

In this chapter I'll show you how to build a library that you can use to write code for reading and writing binary files. You'll use this library in Chapter 25 to write a parser for ID3 tags, the mechanism used to store metadata such as artist and album names in MP3 files. This library is also an example of how to use macros to extend the language with new constructs, turning it into a special-purpose language for solving a particular problem, in this case reading and writing binary data. Because you'll develop the library a bit at a time, including several partial versions, it may seem you're writing a lot of code. But when all is said and done, the whole library is fewer than 150 lines of code, and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Land of Lisp

Land of Lisp

Conrad Barski M.D.
The Go Programming Language

The Go Programming Language

Alan A. A. Donovan, Brian W. Kernighan
The Rust Programming Language, 2nd Edition

The Rust Programming Language, 2nd Edition

Steve Klabnik, Carol Nichols

Publisher Resources

ISBN: 9781590592397Purchase book