Cirru(cirru.org) is a tiny syntax for generating syntax trees. It's very like Scheme but reduced some parentheses.
By now I'm using Cirru to generate two languages: JavaScript and Clojure.
For JavaScript side, it's called CirruScript(script.cirru.org & npmjs.org/package/cirru-script) which is based on babel to generate ES5 code. CirruScript code like this
cirru
var a $ require :react
= b $ \ (x)
console.log x
outputs:
js
var a = require('react');
b = function(x) {
console.log(x);
};
And for Clojure side, it's called Sepal.clj(github.com/Cirru/lein-cirru-sepal) and
cirru
def a |string
defn b (x)
println x
outputs:
clojure
(def a "string")
(defn b [x]
(println x))
I've been using it my personal project for months, you can check that on GitHub:
No responses yet.