No description
Find a file
2024-09-30 00:25:58 +02:00
tests Turned a-list into parameter 2022-10-30 22:37:47 +01:00
.dir-locals.el Turned a-list into parameter 2022-10-30 22:37:47 +01:00
.gitignore In the beginning there was darkness 2020-02-19 01:29:52 +01:00
edn-impl.scm Turned a-list into parameter 2022-10-30 22:37:47 +01:00
edn.egg Port to Chicken 6 2024-09-30 00:25:58 +02:00
edn.release-info Update egg location 2024-09-27 15:05:10 +00:00
edn.release-info.6 Port to Chicken 6 2024-09-30 00:25:58 +02:00
edn.scm Port to Chicken 6 2024-09-30 00:25:58 +02:00
LICENSE In the beginning there was darkness 2020-02-19 01:29:52 +01:00
README.md Port to Chicken 6 2024-09-30 00:25:58 +02:00

License Chicken Scheme Egg Liberapay

chicken-edn

An EDN reader and writer for R7RS compatible Schemes.

Installation: chicken-install edn

Data type conversions

  • All kinds of numbers get converted to Scheme numbers, precision suffixes (N and M) get ignored.
  • Keywords :keyword get converted to chicken scheme keywords keyword:.
  • Maps get converted to SRFI 69 hashtables.
  • Vectors are srfi-4 vectors.
  • true = #t, false = #f, nil = '()

Missing reader functionality

Should you notice missing functionality of the reader, plesase use the issues page to report it and, if possible, provide a minimal test case.

API

  • Transforming EDN into Scheme: (read-edn <port>)
  • Transforming Scheme into EDN: (write-edn <port> <datastructure>)
  • Using reader tags: the library contains a parameter tag-handlers containing an a-list. To register a handler, add an a-list entry where the key is the tag without \# and as a keyword, and the value a one-argument procedure.

Releases

  • 1.1: Port to Chicken 6.
  • 1.0: Made the custom parsers a parameter.
  • 0.5.2: Update for Chicken 5
  • 0.5.1: Small compatibility improvements: "/" now starts a symbol as well, and "," is treated as whitespace.
  • 0.5: Reader tag support.
  • 0.4: Complete rewrite. Only relies on R7RS, and SRFI 1, 4, 69 and 88. Uses ports. Reads and writes EDN.
  • 0.3: EDN tags, including special forms, work. #inst and #uuid both get read as strings. Add nil. Add number prefixes. Add no-space-required to #_ tag.
  • 0.2.1: Can read EDN-files and -strings. EDN tags are not working yet.
  • 0.2: Can read EDN-strings with one top-level data structure.

Roadmap

About

Written by Daniel Ziltener. EDN written by Rich Hickey. The EDN specification is available at https://github.com/edn-format/edn.