Fork me on GitHub
;;;; This is Hy. Hy is a Lisp variant that ;;;; "compiles" to Python ASTs. ;;;; ;;;; This pane is the Hy lisp variant, ;;;; and the right side is what the output ;;;; AST looks like using the `codegen` module. ;;;; ;;;; star the repo @ http://github.com/hylang/hy ;;;; read the tutorial @ http://hy.readthedocs.org/en/latest/tutorial.html ;;;; (defn square [x] "This function will square a number" (* x x)) (print (square 2)) (defn add-two-numbers [x y] (+ x y)) ;; (dashes turn to underscores) (print (add-two-numbers 1 2))