Spenser's personal site for things Spenser is enjoying and wanting to show you! (site contents below) use your mouse scroll wheel and "left click" function to view.

CSV
fisho down This website uses an efficient fish-based (based fish) navigation technique.

CSV

Defines a Common Lisp reader to read in CSV:

#!"field","field","field"!#

or read in CSV files with `slurp`:

(slurp #p"example.csv")

and the result is a list:

CL-USER> (csv:slurp #p"example.csv")
("example" "csv" "list" "result" "like" " this")

This program invokes the lisp reader, making it:

  1. Potentially risky to use if the input it not trusted.

  2. Resource intensive for medium to large files (>5MB).

Use with care.

Features:

Supports escaping quotes the CSV way, with quad quotes:

csv   -> lisp

"""" -> "\""

Installation

[Clone from github](https://github.com/equwal/CSV) into asdf load directory and
use ASDF to install:

$ git clone https://github.com/equwal/CSV
$ sbcl
CL-USER> (asdf:load-system :csv)
T

Notes:

By default backslashes are not escaped.
CSV is expected to be a list of quoted items, like this:

#!"example","here"!#
fisho up
in: projects

Spenser Truex

Contact
hacker emblem
| |