Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.
Go to file
Kartik K. Agaram 368e76cdf6 19 - example function with type-based dispatch
I imagined we could just push new clauses at the top, but that isn't realistic;
it would mess up all the jump locations.
Either we need to append clauses, or we need some sort of relative adddressing
for locations. Can't think of a third idea at the moment.
Appending clauses is fine as long as functions are restrictive about what they
accept.
2014-07-11 22:26:19 -07:00
Readme 10 2014-07-09 23:30:09 -07:00
mu.arc 19 - example function with type-based dispatch 2014-07-11 22:26:19 -07:00
mu.arc.t 19 - example function with type-based dispatch 2014-07-11 22:26:19 -07:00
x.mu 2 - compound functions 2014-07-06 01:54:09 -07:00

Readme

== Installing
Prerequisites: Racket from http://racket-lang.org

$ cd mu
$ git clone http://github.com/arclanguage/anarki
$ ./anarki/arc mu.arc x.mu
#hash((1 . 1) (2 . 3) (3 . 4))  # state of simulated memory after executing x.mu
$ ./anark/arc mu.arc.t  # automated tests