diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-08-24 19:01:38 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-08-24 19:01:38 -0700 |
commit | 1d13dac8b1cda5f097897069cd0ea85d6ca2e3f9 (patch) | |
tree | 4a6bf12b7a9d0afbae62d96c9e35e78dabf23225 /081run_interactive.cc | |
parent | 13d12bedc858ceedb3dc18ccda8d8970f8f730ce (diff) | |
download | mu-1d13dac8b1cda5f097897069cd0ea85d6ca2e3f9.tar.gz |
2072
Right after I lectured Caleb about not just adding random deltas to make a program correct, too.
Diffstat (limited to '081run_interactive.cc')
-rw-r--r-- | 081run_interactive.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/081run_interactive.cc b/081run_interactive.cc index 023e4abf..b4b2bc8d 100644 --- a/081run_interactive.cc +++ b/081run_interactive.cc @@ -117,6 +117,15 @@ load(string( transform_all(); recently_added_recipes.clear(); +:(scenario run_interactive_comments) +recipe main [ + 1:address:array:character <- new [# ab +add 2, 2] + 2:address:array:character <- run-interactive 1:address:array:character + 3:array:character <- copy *2:address:array:character +] ++mem: storing 52 in location 4 + :(before "End Primitive Recipe Declarations") _START_TRACKING_PRODUCTS, :(before "End Primitive Recipe Numbers") @@ -262,7 +271,6 @@ string strip_comments(string in) { else { while (i < SIZE(in) && in.at(i) != '\n') ++i; - if (i < SIZE(in) && in.at(i) == '\n') ++i; } } return result.str(); |