Format Cirru code with Clojure
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
entry
examples
src/cirru_writer
.gitattributes
.gitignore
README.md
build.boot
coir.edn
package.json
shadow-cljs.edn
yarn.lock

README.md

Cirru Writer in Clojure

generate human-readable code from vectors

Demo http://repo.cirru.org/writer.clj/

API Usage

Clojars Project

[cirru/writer "0.1.3"]
(cirru-writer.core/write-code [["define"
  "a"
  ["read" "cd"]
  ["if" [">" "a" "cd"] ["print" "demo"] ["print" "not demo"]]]
 ["say" ["print" "a" ["save" ["b" ["x" ["c" "8"]]]]]]
 ["print" "fun"]]
)

prints:

define a (read cd)
  if (> a cd)
    print demo
    print "not demo"

say $ print a
  save $ b (x $ c 8)

print fun

Develop

Test:

yarn
yarn watch-test

# another terminal
node target/test.js

Workflow

https://github.com/mvc-works/coworkflow/

License

MIT