diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-30 10:45:14 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-30 10:45:14 -0700 |
commit | 3e1349d29fa00db1fab3a811b60bc9d8de0355e4 (patch) | |
tree | 93afedf36b8b211432a458ca9c0c7bfaf76e2425 /html/024jump.cc.html | |
parent | 6c69569a4c4ca3a23635d4d7a40f0fe557194619 (diff) | |
download | mu-3e1349d29fa00db1fab3a811b60bc9d8de0355e4.tar.gz |
3431
Improvements to syntax highlighting, particularly for Mu code in C++ files.
Diffstat (limited to 'html/024jump.cc.html')
-rw-r--r-- | html/024jump.cc.html | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/html/024jump.cc.html b/html/024jump.cc.html index f222fa52..077373b7 100644 --- a/html/024jump.cc.html +++ b/html/024jump.cc.html @@ -16,12 +16,13 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color .Constant { color: #00a0a0; } .traceAbsent { color: #c00000; } .cSpecial { color: #008000; } -.traceContains { color: #008000; } +.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; } +.Identifier { color: #fcb165; } --> </style> @@ -36,8 +37,8 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color <span class="Comment">//: Jump primitives</span> <span class="Delimiter">:(scenario jump_can_skip_instructions)</span> -def main [ - jump <span class="Constant">1</span>:offset +<span class="muRecipe">def</span> main [ + jump <span class="Constant">1:offset</span> <span class="Constant">1</span>:num<span class="Special"> <- </span>copy <span class="Constant">1</span> ] <span class="traceContains">+run: jump {1: "offset"}</span> @@ -73,11 +74,11 @@ put<span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span put<span class="Delimiter">(</span>Type_ordinal<span class="Delimiter">,</span> <span class="Constant">"offset"</span><span class="Delimiter">,</span> <span class="Constant">0</span><span class="Delimiter">);</span> <span class="Delimiter">:(scenario jump_backward)</span> -def main [ - jump <span class="Constant">1</span>:offset <span class="Comment"># 0 -+</span> - jump <span class="Constant">3</span>:offset <span class="Comment"># | +-+ 1</span> +<span class="muRecipe">def</span> main [ + jump <span class="Constant">1:offset</span> <span class="Comment"># 0 -+</span> + jump <span class="Constant">3:offset</span> <span class="Comment"># | +-+ 1</span> <span class="Comment"># \/ /\ |</span> - jump -<span class="Constant">2</span>:offset <span class="Comment"># 2 +-->+ |</span> + jump <span class="Constant">-2:offset</span> <span class="Comment"># 2 +-->+ |</span> ] <span class="Comment"># \/ 3</span> <span class="traceContains">+run: jump {1: "offset"}</span> <span class="traceContains">+run: jump {-2: "offset"}</span> @@ -117,8 +118,8 @@ put<span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span <span class="Delimiter">}</span> <span class="Delimiter">:(scenario jump_if)</span> -def main [ - jump-<span class="Normal">if</span> <span class="Constant">999</span><span class="Delimiter">,</span> <span class="Constant">1</span>:offset +<span class="muRecipe">def</span> main [ + jump-<span class="Normal">if</span> <span class="Constant">999</span><span class="Delimiter">,</span> <span class="Constant">1:offset</span> <span class="Constant">123</span>:num<span class="Special"> <- </span>copy <span class="Constant">1</span> ] <span class="traceContains">+run: jump-if {999: "literal"}, {1: "offset"}</span> @@ -127,8 +128,8 @@ def main [ <span class="traceAbsent">-mem: storing 1 in location 123</span> <span class="Delimiter">:(scenario jump_if_fallthrough)</span> -def main [ - jump-<span class="Normal">if</span> <span class="Constant">0</span><span class="Delimiter">,</span> <span class="Constant">1</span>:offset +<span class="muRecipe">def</span> main [ + jump-<span class="Normal">if</span> <span class="Constant">0</span><span class="Delimiter">,</span> <span class="Constant">1:offset</span> <span class="Constant">123</span>:num<span class="Special"> <- </span>copy <span class="Constant">1</span> ] <span class="traceContains">+run: jump-if {0: "literal"}, {1: "offset"}</span> @@ -170,8 +171,8 @@ put<span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span <span class="Delimiter">}</span> <span class="Delimiter">:(scenario jump_unless)</span> -def main [ - jump-unless <span class="Constant">0</span><span class="Delimiter">,</span> <span class="Constant">1</span>:offset +<span class="muRecipe">def</span> main [ + jump-unless <span class="Constant">0</span><span class="Delimiter">,</span> <span class="Constant">1:offset</span> <span class="Constant">123</span>:num<span class="Special"> <- </span>copy <span class="Constant">1</span> ] <span class="traceContains">+run: jump-unless {0: "literal"}, {1: "offset"}</span> @@ -180,8 +181,8 @@ def main [ <span class="traceAbsent">-mem: storing 1 in location 123</span> <span class="Delimiter">:(scenario jump_unless_fallthrough)</span> -def main [ - jump-unless <span class="Constant">999</span><span class="Delimiter">,</span> <span class="Constant">1</span>:offset +<span class="muRecipe">def</span> main [ + jump-unless <span class="Constant">999</span><span class="Delimiter">,</span> <span class="Constant">1:offset</span> <span class="Constant">123</span>:num<span class="Special"> <- </span>copy <span class="Constant">1</span> ] <span class="traceContains">+run: jump-unless {999: "literal"}, {1: "offset"}</span> |