Motto

Motto is the prototype implementation of a dynamic, reflective, point-free programming language and language design toolkit.

You can checkout the source code from github:

git clone git://github.com/vijaymathew/motto.git

Quick Start


[hi] 5 times
=> hi hi hi hi hi

.c '(Clear output.)

1 2 3 4 5 [+] collapse
=> 15 

[hello swap] def say-hello

Jimmy say-hello
=> hello Jimmy

'(Code blocks can have named arguments.)
[def r
 pi r r * *] def area-of-circle

10 area-of-circle
=> 314.1592653589793

'(Code blocks can act as objects.)
[def value
 [value 1 + counter] def increment
 []] def counter

1 counter @ increment @ increment @ increment @ value
=> 4

100 counter def b
b.increment @ increment @ value
=> 102

.q '(Quit the REPL.)

Home