about summary refs log tree commit diff stats
path: root/052tangle.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-08 01:30:14 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-03-08 01:46:47 -0800
commit1ead356219bb2eb59487d1012f837bd07ec336f5 (patch)
treeaf15f390b81e4d6b3e0940c5756a0d7fd1060bb5 /052tangle.cc
parent27ba0937a3747684f299bb7a8b3cdd0fbb689db3 (diff)
downloadmu-1ead356219bb2eb59487d1012f837bd07ec336f5.tar.gz
2735 - define recipes using 'def'
I'm dropping all mention of 'recipe' terminology from the Readme. That
way I hope to avoid further bike-shedding discussions while I very
slowly decide on the right terminology with my students.

I could be smarter in my error messages and use 'recipe' when code uses
it and 'function' otherwise. But what about other words like ingredient?
It would all add complexity that I'm not yet sure is worthwhile. But I
do want separate experiences for veteran programmers reading about Mu on
github and for people learning programming using Mu.
Diffstat (limited to '052tangle.cc')
-rw-r--r--052tangle.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/052tangle.cc b/052tangle.cc
index e4548f58..f06ea4c0 100644
--- a/052tangle.cc
+++ b/052tangle.cc
@@ -7,7 +7,7 @@
 //: todo: switch recipe.steps to a more efficient data structure.
 
 :(scenario tangle_before)
-recipe main [
+def main [
   1:number <- copy 0
   <label1>
   3:number <- copy 0
@@ -152,7 +152,7 @@ void check_insert_fragments(unused recipe_ordinal) {
 }
 
 :(scenario tangle_before_and_after)
-recipe main [
+def main [
   1:number <- copy 0
   <label1>
   4:number <- copy 0
@@ -173,7 +173,7 @@ $mem: 4
 
 :(scenario tangle_ignores_jump_target)
 % Hide_errors = true;
-recipe main [
+def main [
   1:number <- copy 0
   +label1
   4:number <- copy 0
@@ -184,7 +184,7 @@ before +label1 [
 +error: can't tangle before label +label1
 
 :(scenario tangle_keeps_labels_separate)
-recipe main [
+def main [
   1:number <- copy 0
   <label1>
   <label2>
@@ -215,7 +215,7 @@ after <label2> [
 $mem: 6
 
 :(scenario tangle_stacks_multiple_fragments)
-recipe main [
+def main [
   1:number <- copy 0
   <label1>
   6:number <- copy 0
@@ -245,7 +245,7 @@ after <label1> [
 $mem: 6
 
 :(scenario tangle_supports_fragments_with_multiple_instructions)
-recipe main [
+def main [
   1:number <- copy 0
   <label1>
   6:number <- copy 0
@@ -269,13 +269,13 @@ after <label1> [
 $mem: 6
 
 :(scenario tangle_tangles_into_all_labels_with_same_name)
-recipe main [
+def main [
   1:number <- copy 10
   <label1>
   4:number <- copy 10
   recipe2
 ]
-recipe recipe2 [
+def recipe2 [
   1:number <- copy 11
   <label1>
   4:number <- copy 11
@@ -301,7 +301,7 @@ after <label1> [
 $mem: 8
 
 :(scenario tangle_tangles_into_all_labels_with_same_name_2)
-recipe main [
+def main [
   1:number <- copy 10
   <label1>
   <label1>
@@ -325,7 +325,7 @@ after <label1> [
 $mem: 6
 
 :(scenario tangle_tangles_into_all_labels_with_same_name_3)
-recipe main [
+def main [
   1:number <- copy 10
   <label1>
   <foo>
@@ -352,7 +352,7 @@ after <foo> [
 $mem: 6
 
 :(scenario tangle_handles_jump_target_inside_fragment)
-recipe main [
+def main [
   1:number <- copy 10
   <label1>
   4:number <- copy 10
@@ -373,7 +373,7 @@ before <label1> [
 $mem: 3
 
 :(scenario tangle_renames_jump_target)
-recipe main [
+def main [
   1:number <- copy 10
   <label1>
   +label2
@@ -395,7 +395,7 @@ before <label1> [
 $mem: 3
 
 :(scenario tangle_jump_to_base_recipe)
-recipe main [
+def main [
   1:number <- copy 10
   <label1>
   +label2