4a0b335c28
As expected, mu works just as well with named variables. Maybe I want to insert the local stack frame computations automatically using the assembler? How to indicate globals then? Add 'local' metadata only if 'global' is absent? What about lexical stack frames? |
||
---|---|---|
Readme | ||
mu.arc | ||
mu.arc.t | ||
new.mu | ||
x.mu |
Readme
== Installing Prerequisites: Racket from http://racket-lang.org $ cd mu $ git clone http://github.com/arclanguage/anarki $ cat x.mu (main ((x integer) <- literal 1) ((y integer) <- literal 3) ((z integer) <- add (x integer) (y integer)) ) $ ./anarki/arc mu.arc x.mu hash((x . 1) (y . 3) (z . 4)) # state of simulated memory after executing x.mu # location z contains the sum of locations x and y $ ./anark/arc mu.arc.t # automated tests; start reading here