Writing code in syntax tree
Cirru Project helps people code in syntax tree. It offers a tree editor and a text syntax.
Cirru prefers indentations.
Symbols simplify parsing, indentations improves readability.
"Cirru" came from
cirrus cloud, and reads like
The core of Cirru's text form is a indentation-based syntax:
()to create expressions inside each line
\, see Bash
$as a function to fold code, see Haskell
,as a function to unfold code, see CoffeeScript
Cirru adopted Lisp's notions to keep minimalistic:
These snippets are identical although folding in various ways:
set a (add (number 1) (numer 2))
set a $ add (number 1) $ number 2
set a $ add
Also here's identical demos for
, on unfolding:
+ 1 2
print (+ 1 2) 11
And multi-level indentations is OK for
+ a b
let ((a 1) (b 2)) (+ a b)
Find more by exploring cirru-parser.