diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-07-28 14:33:22 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-07-28 14:33:22 -0700 |
commit | bc6436927640603675e2e700007f53c5ab213869 (patch) | |
tree | e8f76a871ac4118223e03015f32e6bd687a7bd49 /020run.cc | |
parent | aa0888459fc2ca41b0ad6bef5bfa72223ca33945 (diff) | |
download | mu-bc6436927640603675e2e700007f53c5ab213869.tar.gz |
1868 - start using naked literals everywhere
First step to reducing typing burden. Next step: inferring types.
Diffstat (limited to '020run.cc')
-rw-r--r-- | 020run.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/020run.cc b/020run.cc index 5f1e15c1..81eeb14d 100644 --- a/020run.cc +++ b/020run.cc @@ -11,14 +11,14 @@ :(scenario copy_literal) recipe main [ - 1:number <- copy 23:literal + 1:number <- copy 23 ] -+run: 1:number <- copy 23:literal ++run: 1:number <- copy 23 +mem: storing 23 in location 1 :(scenario copy) recipe main [ - 1:number <- copy 23:literal + 1:number <- copy 23 2:number <- copy 1:number ] +run: 2:number <- copy 1:number @@ -27,7 +27,7 @@ recipe main [ :(scenario copy_multiple) recipe main [ - 1:number, 2:number <- copy 23:literal, 24:literal + 1:number, 2:number <- copy 23, 24 ] +mem: storing 23 in location 1 +mem: storing 24 in location 2 @@ -249,21 +249,21 @@ bool is_literal(const reagent& r) { :(scenario run_label) recipe main [ +foo - 1:number <- copy 23:literal + 1:number <- copy 23 2:number <- copy 1:number ] -+run: 1:number <- copy 23:literal ++run: 1:number <- copy 23 +run: 2:number <- copy 1:number -run: +foo :(scenario run_dummy) recipe main [ - _ <- copy 0:literal + _ <- copy 0 ] -+run: _ <- copy 0:literal ++run: _ <- copy 0 -:(scenario run_literal) +:(scenario write_to_0_disallowed) recipe main [ - 0:literal/screen <- copy 0:literal + 0 <- copy 34 ] --mem: storing 0 in location 0 +-mem: storing 34 in location 0 |