IPA: /ˈsɪɹə/
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 cirrus
(but without s
).
The core of Cirru's text form is a indentation-based syntax:
()
to create expressions inside each line""
and \
, see Bash$
as a function to fold code, see Haskell,
as a function to unfold code, see CoffeeScriptCirru 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
number 1
number 2
set a
add
number 1
number 2
Also here's identical demos for ,
on unfolding:
print
+ 1 2
, 11
print (+ 1 2) 11
And multi-level indentations is OK for let
syntax:
let
a 1
b 2
+ a b
let ((a 1) (b 2)) (+ a b)
Find more by exploring cirru-parser.
Workflow https://github.com/mvc-works/calcit-workflow
MIT