Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.
Go to file
Kartik K. Agaram 4a0b335c28 49 - make Readme less ambiguous
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?
2014-08-18 10:23:24 -07:00
Readme 49 - make Readme less ambiguous 2014-08-18 10:23:24 -07:00
mu.arc 48 2014-08-02 15:38:50 -07:00
mu.arc.t 46 - there's no continue bug after all in anarki 2014-08-02 02:25:32 -07:00
new.mu 44 - now 'deref' is a bit of metadata on any operand rather than a special op 2014-07-31 02:27:41 -07:00
x.mu 49 - make Readme less ambiguous 2014-08-18 10:23:24 -07:00

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