From 3e1349d29fa00db1fab3a811b60bc9d8de0355e4 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 30 Sep 2016 10:45:14 -0700 Subject: 3431 Improvements to syntax highlighting, particularly for Mu code in C++ files. --- html/034address.cc.html | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'html/034address.cc.html') diff --git a/html/034address.cc.html b/html/034address.cc.html index ea739cf3..f7f575e0 100644 --- a/html/034address.cc.html +++ b/html/034address.cc.html @@ -15,13 +15,14 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color * { font-size: 12pt; font-size: 1em; } .Constant { color: #00a0a0; } .cSpecial { color: #008000; } -.traceContains { color: #008000; } +.CommentedCode { color: #6c6c6c; } +.muRecipe { color: #ff8700; } .Comment { color: #9090ff; } .Delimiter { color: #800080; } .Special { color: #c00000; } -.Identifier { color: #fcb165; } +.traceContains { color: #008000; } .Normal { color: #eeeeee; background-color: #080808; padding-bottom: 1px; } -.CommentedCode { color: #6c6c6c; } +.Identifier { color: #fcb165; } --> @@ -157,15 +158,15 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color :(scenario new) # call 'new' two times with identical types without modifying the results; you # should get back different results -def main [ - 1:address:num/raw <- new number:type - 2:address:num/raw <- new number:type +def main [ + 1:address:num/raw <- new number:type + 2:address:num/raw <- new number:type 3:bool/raw <- equal 1:address:num/raw, 2:address:num/raw ] +mem: storing 0 in location 3 :(scenario dilated_reagent_with_new) -def main [ +def main [ 1:address:address:num <- new {(address number): type} ] +new: size of ("address" "number") is 1 @@ -375,15 +376,15 @@ put(Recipe_ordinal,:(scenario new_initializes) % Memory_allocated_until = 10; % put(Memory, Memory_allocated_until, 1); -def main [ - 1:address:num <- new number:type +def main [ + 1:address:num <- new number:type ] +mem: storing 0 in location 10 :(scenario new_array) -def main [ - 1:address:array:num/raw <- new number:type, 5 - 2:address:num/raw <- new number:type +def main [ + 1:address:array:num/raw <- new number:type, 5 + 2:address:num/raw <- new number:type 3:num/raw <- subtract 2:address:num/raw, 1:address:array:num/raw ] +run: {1: ("address" "array" "number"), "raw": ()} <- new {number: "type"}, {5: "literal"} @@ -392,9 +393,9 @@ def main [ +mem: storing 7 in location 3 :(scenario new_empty_array) -def main [ - 1:address:array:num/raw <- new number:type, 0 - 2:address:num/raw <- new number:type +def main [ + 1:address:array:num/raw <- new number:type, 0 + 2:address:num/raw <- new number:type 3:num/raw <- subtract 2:address:num/raw, 1:address:array:num/raw ] +run: {1: ("address" "array" "number"), "raw": ()} <- new {number: "type"}, {0: "literal"} @@ -405,9 +406,9 @@ def main [ //: If a routine runs out of its initial allocation, it should allocate more. :(scenario new_overflow) % Initial_memory_per_routine = 3; // barely enough room for point allocation below -def main [ - 1:address:num/raw <- new number:type - 2:address:point/raw <- new point:type # not enough room in initial page +def main [ + 1:address:num/raw <- new number:type + 2:address:point/raw <- new point:type # not enough room in initial page ] +new: routine allocated memory from 1000 to 1003 +new: routine allocated memory from 1003 to 1006 -- cgit 1.4.1-2-gfad0