diff options
Diffstat (limited to 'cpp/042new')
-rw-r--r-- | cpp/042new | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp/042new b/cpp/042new index 0d7742f8..7244cca2 100644 --- a/cpp/042new +++ b/cpp/042new @@ -19,7 +19,8 @@ size_t alloc; calls.push(call(r)); } -//: First handle 'type' operands +//:: First handle 'type' operands. + :(before "End Mu Types Initialization") Type_number["type"] = 0; :(after "Per-recipe Transforms") @@ -35,7 +36,8 @@ if (inst.operation == Recipe_number["new"]) { trace("new") << inst.ingredients[0].name << " -> " << inst.ingredients[0].value; } -//: Now implement the primitive recipe. +//:: Now implement the primitive recipe. + :(before "End Primitive Recipe Declarations") NEW, :(before "End Primitive Recipe Numbers") @@ -74,7 +76,8 @@ recipe main [ +run: instruction main/2 +mem: storing 5 in location 3 -//: Next, extend 'new' to handle a string literal argument. +//:: Next, extend 'new' to handle a string literal argument. + :(scenario "new_string") recipe main [ 1:address:array:character <- new [abc def] |