Skip to content

caolan/chicken-bencode

Repository files navigation

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).

About

Bencoding parser and serializer for CHICKEN scheme

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages