Orchid
A simplistic functional programming language based around Lisp syntax.
Short taste
# function to return the larger list
(fn larger-list (as bs)
(if (> (len as) (len bs))
(as)
# otherwise, return bs
(bs)))
# main is ran by default when an Orchid program is interpreted
(fn main ()
(larger-list '(1 2 3) '(1 2 3 4)))
Currently implemented:
- Calling builtin functions (eg
print
and all the arithmetic operators) if
formslet
forms/bindings which have correct scoping, as in:
(let ((x 2) (y 4))
(print (+ x y)))
# both x and y are dropped here