Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
history
You can edit this page using
wiki syntax
for markup.
Article contents:
[[tags: egg]] == edn EDN data reader/writer [[toc:]] === EDN This egg provides a parser and a writer for the [[https://github.com/edn-format/edn|Extensible Data Notation]]. === Documentation === Reading EDN ==== {{tag-handlers}} <constant>tag-handlers → (parameter (list (cons _: (lambda (input) edn/omit:))))</constant> An a-list parameter containing the handlers for reader tags. You can register your own reader tags by simply adding a new a-list entry. Example for a tag "#keywordify": add the entry `(cons keywordify: keywordify-procedure)`. <enscript highlight="scheme">(tag-handlers (list (cons _: (lambda (input) edn/omit:)))) </enscript> ==== {{read-edn}} <procedure>(read-edn) → unspecified</procedure> Reads EDN data from the `current-input-port`, converts it to Chicken data and returns it. Precision suffixes for numbers get ignored, maps get converted to SRFI-69 hashtables, vectors to SRFI-4 vectors. <enscript highlight="scheme">(define (read-edn) (second ((parse-edn '()) (current-input-port)))) </enscript> === Writing EDN ==== {{write-edn}} <procedure>(write-edn struct) → unspecified</procedure> Converts Chicken data structures to EDN and writes it to the `current-output-port`. ; {{struct}} : A Chicken data structure consisting of atoms, lists, vectors and hashtables. <enscript highlight="scheme">(define (write-edn struct) (lambda () (display (parse-entry struct) (current-output-port)))) </enscript> === About this egg ==== Author Daniel Ziltener ==== Repository [[https:///gitea.lyrion.ch/Chicken/edn|https:///gitea.lyrion.ch/Chicken/edn]] ==== License BSD ==== Dependencies * [[r7rs]] * [[srfi-1]] * [[srfi-69]] * [[chalk]] ==== Colophon Documented by [[/egg/chalk|chalk]].
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you add 3 to 24?