diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-04-27 15:40:46 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-04-27 15:40:46 -0700 |
commit | dea902172dd62d14eebc5fed9e11542ebcdc88e6 (patch) | |
tree | a7ac5d97cb87eec2997a024fffa9ee41b6dab045 /html/055recipe_header.cc.html | |
parent | 5109e78fab2e94059763eefaec93bd6649d22c1f (diff) | |
download | mu-dea902172dd62d14eebc5fed9e11542ebcdc88e6.tar.gz |
2875
Diffstat (limited to 'html/055recipe_header.cc.html')
-rw-r--r-- | html/055recipe_header.cc.html | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/html/055recipe_header.cc.html b/html/055recipe_header.cc.html index 93acb6c8..ccdee487 100644 --- a/html/055recipe_header.cc.html +++ b/html/055recipe_header.cc.html @@ -398,7 +398,7 @@ Transform<span class="Delimiter">.</span>push_back<span class="Delimiter">(</spa <span class="Comment">//: One final convenience: no need to say what to return if the information is</span> <span class="Comment">//: in the header.</span> -<span class="Delimiter">:(scenario reply_based_on_header)</span> +<span class="Delimiter">:(scenario return_based_on_header)</span> def main [ <span class="Constant">1</span>:number/<span class="Special">raw <- </span>add2 <span class="Constant">3</span><span class="Delimiter">,</span> <span class="Constant">5</span> ] @@ -463,7 +463,7 @@ def add2 a:number<span class="Delimiter">,</span> b:number <span class="Delimite <span class="traceContains">+mem: storing 3 in location 1</span> <span class="traceContains">+mem: storing -2 in location 2</span> -<span class="Delimiter">:(scenario reply_on_fallthrough_based_on_header)</span> +<span class="Delimiter">:(scenario return_on_fallthrough_based_on_header)</span> def main [ <span class="Constant">1</span>:number/<span class="Special">raw <- </span>add2 <span class="Constant">3</span><span class="Delimiter">,</span> <span class="Constant">5</span> ] @@ -475,7 +475,7 @@ def add2 x:number<span class="Delimiter">,</span> y:number <span class="Delimite <span class="traceContains">+transform: instruction: reply {z: "number"}</span> <span class="traceContains">+mem: storing 8 in location 1</span> -<span class="Delimiter">:(scenario reply_on_fallthrough_already_exists)</span> +<span class="Delimiter">:(scenario return_on_fallthrough_already_exists)</span> def main [ <span class="Constant">1</span>:number/<span class="Special">raw <- </span>add2 <span class="Constant">3</span><span class="Delimiter">,</span> <span class="Constant">5</span> ] @@ -489,6 +489,18 @@ def add2 x:number<span class="Delimiter">,</span> y:number <span class="Delimite <span class="traceAbsent">-transform: instruction: reply z:number</span> <span class="traceContains">+mem: storing 8 in location 1</span> +<span class="Delimiter">:(scenario return_after_conditional_reply_based_on_header)</span> +def main [ + <span class="Constant">1</span>:number/<span class="Special">raw <- </span>add2 <span class="Constant">3</span><span class="Delimiter">,</span> <span class="Constant">5</span> +] +def add2 x:number<span class="Delimiter">,</span> y:number <span class="Delimiter">-></span> z:number [ + local-scope + load-ingredients + z<span class="Special"> <- </span>add x<span class="Delimiter">,</span> y <span class="Comment"># no type for z</span> + <span class="Identifier">return</span>-<span class="Normal">if</span> <span class="Constant">0</span>/<span class="Constant">false</span><span class="Delimiter">,</span> <span class="Constant">34</span> +] +<span class="traceContains">+mem: storing 8 in location 1</span> + <span class="Delimiter">:(scenario recipe_headers_perform_same_ingredient_check)</span> <span class="Special">% Hide_errors = true;</span> def main [ |