From d44123cabaa730c778a0e2644c75dbfba6a7ab30 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 12 Jun 2015 22:34:45 -0700 Subject: 1556 --- html/062array.mu.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'html/062array.mu.html') diff --git a/html/062array.mu.html b/html/062array.mu.html index 435d8fbd..e7b4cb3a 100644 --- a/html/062array.mu.html +++ b/html/062array.mu.html @@ -13,13 +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: 1em; } +.muScenario { color: #00af00; } .Delimiter { color: #c000c0; } .Comment { color: #8080ff; } .Constant { color: #008080; } .Special { color: #ff6060; } -.Identifier { color: #008080; } +.muControl { color: #804000; } .muRecipe { color: #ff8700; } -.muScenario { color: #00af00; } --> @@ -46,14 +46,14 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } # create an array out of a list of scalar args recipe init-array [ - default-space:address:array:location <- new location:type, 30:literal + default-space:address:array:location <- new location:type, 30:literal capacity:number <- copy 0:literal { # while read curr-value - curr-value:location, exists?:boolean <- next-ingredient - break-unless exists?:boolean + curr-value:location, exists?:boolean <- next-ingredient + break-unless exists?:boolean capacity:number <- add capacity:number, 1:literal - loop + loop } result:address:array:location <- new location:type, capacity:number rewind-ingredients @@ -61,15 +61,15 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } { # while read curr-value done?:boolean <- greater-or-equal i:number, capacity:number - break-if done?:boolean - curr-value:location, exists?:boolean <- next-ingredient + break-if done?:boolean + curr-value:location, exists?:boolean <- next-ingredient assert exists?:boolean, [error in rewinding ingredients to init-array] tmp:address:location <- index-address result:address:array:location/deref, i:number tmp:address:location/deref <- copy curr-value:location i:number <- add i:number, 1:literal - loop + loop } - reply result:address:array:location + reply result:address:array:location ] -- cgit 1.4.1-2-gfad0