(index ("tag-handlers" 0) ("read-edn" 421) ("write-edn" 786))
(def (sig (constant "tag-handlers → (list (cons _: (lambda (input) edn/omit:)))" (id tag-handlers))) (p "An a-list containing the handlers for reader tags. You can register your own reader tags by simply adding a new a-list entry.") (p "Example for a tag \"#keywordify\": add the entry `(cons keywordify: keywordify-procedure)`.") (highlight scheme "(define tag-handlers (list (cons _: (lambda (input) edn/omit:))))"))
(def (sig (procedure "(read-edn) → unspecified" (id read-edn))) (p "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.") (highlight scheme "(define (read-edn) (second ((parse-edn '()) (current-input-port))))"))
(def (sig (procedure "(write-edn struct) → unspecified" (id write-edn))) (p "Converts Chicken data structures to EDN and writes it to the `current-output-port`.") (dl (dt (tt "struct")) (dd "A Chicken data structure consisting of atoms, lists, vectors and hashtables.")) (highlight scheme "(define (write-edn struct)\n  (lambda () (display (parse-entry struct) (current-output-port))))"))
