about summary refs log tree commit diff stats
path: root/Readme
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-08-18 10:23:24 -0700
committerKartik K. Agaram <vc@akkartik.com>2014-08-18 10:23:24 -0700
commit4a0b335c28933cbec7215b04e4f7558f833257f4 (patch)
tree0e23a1da7f3b2e30a03812c510731bae680dcdd5 /Readme
parentab8619a14845aad71ef5193bcc91461a1fa530bd (diff)
downloadmu-4a0b335c28933cbec7215b04e4f7558f833257f4.tar.gz
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?
Diffstat (limited to 'Readme')
-rw-r--r--Readme10
1 files changed, 5 insertions, 5 deletions
diff --git a/Readme b/Readme
index 88904c1a..614b6058 100644
--- a/Readme
+++ b/Readme
@@ -6,13 +6,13 @@ $ git clone http://github.com/arclanguage/anarki
 
 $ cat x.mu
 (main
-  ((1 integer) <- literal 1)
-  ((2 integer) <- literal 3)
-  ((3 integer) <- add (1 integer) (2 integer))
+  ((x integer) <- literal 1)
+  ((y integer) <- literal 3)
+  ((z integer) <- add (x integer) (y integer))
 )
 
 $ ./anarki/arc mu.arc x.mu
-#hash((1 . 1) (2 . 3) (3 . 4))  # state of simulated memory after executing x.mu
-  # location 3 contains the sum of locations 1 and 2
+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