Liking cljdoc? Tell your friends :D

Cirru EDN

EDN data in Cirru format.

Demo http://repo.cirru.org/cirru-edn/

Usage

Respo

[cirru/edn "0.0.9-a1"]
(cirru-edn.core/parse "a b")

(cirru-edn.core/write {:a 1})

To represent single liternals, Cirru EDN requires an extra do x syntax, for example:

do :something

use Nim parser(experimental. can be slow)

To use parser from nim:

yarn add @cirru/parser.nim
(cirru-edn.nim/parse "a b")

Syntax

Cirru EDN is based on Cirru Text Syntax, on top of which there is specific syntax for EDN:

Vectors, lists and sets:

[] 1 2 3
list 1 2 3
set 1 2 3

Hashmap:

{}
  :a 1
  :b 3

Literals, since Cirru use lines for expressions, need do for extracting values:

do 1
do :k
do nil

Strings need to be prefixed with a |:

do |short
do "|long text"

Workflow

Workflow https://github.com/mvc-works/calcit-workflow

License

MIT

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close