Bencoding parser and serializer for CHICKEN scheme
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
.gitignore
CHANGELOG
README.md
bencode.meta
bencode.release-info
bencode.scm
bencode.setup

README.md

Bencode

A Bencoding parser and serializer for CHICKEN scheme.

Usage:

;; defaults to current-port if no port provided
(read-bencode [port])
(write-bencode data [port])

Conversion to/from scheme types:

Bencode     | Scheme
----------------------------------------
string      | string
integer     | number
list        | vector
dictionary  | alist in (symbol . *) form

Attempting to bencode a scheme type not on the above list, or attempting to encode a non-integer number will cause an exception. Condition objects arising from encode/decode errors will have the type (exn bencode).