From 7284d503f67572dab678f68e5635c471a9d53480 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 17 Apr 2015 23:24:52 -0700 Subject: 1094 - demarcate sections in layers We have tangled vs regular comments, but they highlight the same. So we're still at 3 colors for comments. Anything more starts to seem gratuitous. --- cpp/042new | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cpp/042new') 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] -- cgit 1.4.1-2-gfad0