diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-16 21:19:50 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-16 21:19:50 -0700 |
commit | 1918e650b333b2dfbfc688f2f276c6fee6eb893a (patch) | |
tree | ed51d7f3267f83930ce4e3c35aec9f0b541accb5 /cpp/021call_ingredient | |
parent | 3a787ca752d2b931c71ed6f34a5aecbf40b8be23 (diff) | |
download | mu-1918e650b333b2dfbfc688f2f276c6fee6eb893a.tar.gz |
936
Diffstat (limited to 'cpp/021call_ingredient')
-rw-r--r-- | cpp/021call_ingredient | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/021call_ingredient b/cpp/021call_ingredient index 9cc30470..0401d5b9 100644 --- a/cpp/021call_ingredient +++ b/cpp/021call_ingredient @@ -1,11 +1,11 @@ //: Calls can take ingredients just like primitives. To access a recipe's -//: ingredients, use 'next_ingredient'. +//: ingredients, use 'next-ingredient'. :(scenario "next_ingredient") recipe main [ f 2:literal ] recipe f [ - 12:integer <- next_ingredient + 12:integer <- next-ingredient 13:integer <- add 1:literal, 12:integer ] +run: instruction f/1 @@ -28,7 +28,7 @@ rr.calls.push(callee); :(before "End Globals") const int NEXT_INGREDIENT = 22; :(before "End Primitive Recipe Numbers") -Recipe_number["next_ingredient"] = NEXT_INGREDIENT; +Recipe_number["next-ingredient"] = NEXT_INGREDIENT; assert(Next_recipe_number == NEXT_INGREDIENT); Next_recipe_number++; :(before "End Primitive Recipe Implementations") |