From 90560d7194f3e451ddab9d4033c98d2e6aec977b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 23 Aug 2015 10:19:23 -0700 Subject: 2062 --- html/045space_surround.cc.html | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'html/045space_surround.cc.html') diff --git a/html/045space_surround.cc.html b/html/045space_surround.cc.html index a2705517..6ceb3696 100644 --- a/html/045space_surround.cc.html +++ b/html/045space_surround.cc.html @@ -13,14 +13,13 @@ pre { white-space: pre-wrap; font-family: monospace; color: #eeeeee; background-color: #080808; } body { font-family: monospace; color: #eeeeee; background-color: #080808; } * { font-size: 1.05em; } -.traceContains { color: #008000; } -.Constant { color: #00a0a0; } .cSpecial { color: #008000; } -.Normal { color: #eeeeee; background-color: #080808; padding-bottom: 1px; } +.traceContains { color: #008000; } .Comment { color: #9090ff; } .Delimiter { color: #a04060; } .Special { color: #ff6060; } .Identifier { color: #804000; } +.Constant { color: #00a0a0; } --> @@ -43,7 +42,7 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } recipe main [ 10:number <- copy 5 # pretend array 20:number <- copy 5 # pretend array - default-space:address:array:location <- copy 10 + default-space:address:array:location <- copy 10 0:address:array:location/names:dummy <- copy 20 # later layers will explain the /names: property 1:number <- copy 32 1:number/space:1 <- copy 33 @@ -60,22 +59,22 @@ recipe main [ //: one. :(replace{} "long long int space_base(const reagent& x)") -long long int space_base(const reagent& x) { +long long int space_base(const reagent& x) { return space_base(x, space_index(x), Current_routine->calls.front().default_space); } -long long int space_base(const reagent& x, long long int space_index, long long int base) { - if (space_index == 0) { +long long int space_base(const reagent& x, long long int space_index, long long int base) { + if (space_index == 0) { return base; } - long long int result = space_base(x, space_index-1, Memory[base+1]); + long long int result = space_base(x, space_index-1, Memory[base+1]); return result; } -long long int space_index(const reagent& x) { - for (long long int i = /*skip name:type*/1; i < SIZE(x.properties); ++i) { - if (x.properties.at(i).first == "space") { - if (SIZE(x.properties.at(i).second) != 1) +long long int space_index(const reagent& x) { + for (long long int i = /*skip name:type*/1; i < SIZE(x.properties); ++i) { + if (x.properties.at(i).first == "space") { + if (SIZE(x.properties.at(i).second) != 1) raise << current_recipe_name() << ": /space metadata should take exactly one value in " << x.original_string << '\n' << end(); return to_integer(x.properties.at(i).second.at(0)); } @@ -85,7 +84,7 @@ recipe main [ :(scenario permit_space_as_variable_name) recipe main [ - space:number <- copy 0 + space:number <- copy 0 ] -- cgit 1.4.1-2-gfad0