diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-02 15:50:59 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-02 15:50:59 -0700 |
commit | a316f1e4168a98ba8c1bbe7b091f8a7e7b3f03e6 (patch) | |
tree | cd8835427171818f1c6c6587bd77987e45d7fd46 /cpp/049scenario_helpers.cc | |
parent | 518e6c5e571077ecc29d28f620f7312cf18bd5d0 (diff) | |
download | mu-a316f1e4168a98ba8c1bbe7b091f8a7e7b3f03e6.tar.gz |
1241 - bugfix: comments inside run [ ... ]
Diffstat (limited to 'cpp/049scenario_helpers.cc')
-rw-r--r-- | cpp/049scenario_helpers.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/049scenario_helpers.cc b/cpp/049scenario_helpers.cc index d1d71c99..fa584565 100644 --- a/cpp/049scenario_helpers.cc +++ b/cpp/049scenario_helpers.cc @@ -12,6 +12,15 @@ recipe main [ ] +mem: storing 13 in location 1 +:(scenario run_handles_comments) +recipe main [ + run [ + # comment + 1:integer <- copy 13:literal + ] +] ++mem: storing 13 in location 1 + :(before "End Globals") size_t Num_temporary_recipes = 0; :(before "End Setup") @@ -26,6 +35,7 @@ case RUN: { //? cout << "recipe " << current_instruction().ingredients[0].name << '\n'; //? 1 ostringstream tmp; tmp << "recipe tmp" << Num_temporary_recipes++ << " [ " << current_instruction().ingredients[0].name << " ]"; +//? Show_rest_of_stream = true; //? 1 vector<recipe_number> tmp_recipe = load(tmp.str()); transform_all(); //? cout << tmp_recipe[0] << ' ' << Recipe_number["main"] << '\n'; //? 1 |