about summary refs log tree commit diff stats
path: root/cpp/040brace
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-24 10:19:03 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-24 10:19:03 -0700
commit88be3dbc0c996490dbac97538f4d712a5b4f6f07 (patch)
treedbba8f597d3090bb71553544ba28c59644973b3b /cpp/040brace
parente351d6fd04d95068fac4402dc103e0752182fa8d (diff)
downloadmu-88be3dbc0c996490dbac97538f4d712a5b4f6f07.tar.gz
1162
Diffstat (limited to 'cpp/040brace')
-rw-r--r--cpp/040brace30
1 files changed, 15 insertions, 15 deletions
diff --git a/cpp/040brace b/cpp/040brace
index e79f6100..fa9efab5 100644
--- a/cpp/040brace
+++ b/cpp/040brace
@@ -20,7 +20,7 @@
 //: like 'if', 'while', 'for', etc.
 
 :(scenarios transform)
-:(scenario "brace_conversion")
+:(scenario brace_conversion)
 recipe main [
   {
     break
@@ -183,7 +183,7 @@ Recipe_number["loop"] = LOOP;
 Recipe_number["loop-if"] = LOOP_IF;
 Recipe_number["loop-unless"] = LOOP_UNLESS;
 
-:(scenario "loop")
+:(scenario loop)
 recipe main [
   1:integer <- copy 0:literal
   2:integer <- copy 0:literal
@@ -198,7 +198,7 @@ recipe main [
 +after-brace: copy ...
 +after-brace: jump -2:offset
 
-:(scenario "break_empty_block")
+:(scenario break_empty_block)
 recipe main [
   1:integer <- copy 0:literal
   {
@@ -209,7 +209,7 @@ recipe main [
 +after-brace: copy ...
 +after-brace: jump 0:offset
 
-:(scenario "break_cascading")
+:(scenario break_cascading)
 recipe main [
   1:integer <- copy 0:literal
   {
@@ -224,7 +224,7 @@ recipe main [
 +after-brace: jump 0:offset
 +after-brace: jump 0:offset
 
-:(scenario "break_cascading2")
+:(scenario break_cascading2)
 recipe main [
   1:integer <- copy 0:literal
   2:integer <- copy 0:literal
@@ -243,7 +243,7 @@ recipe main [
 +after-brace: copy ...
 +after-brace: jump 0:offset
 
-:(scenario "break_if")
+:(scenario break_if)
 recipe main [
   1:integer <- copy 0:literal
   2:integer <- copy 0:literal
@@ -262,7 +262,7 @@ recipe main [
 +after-brace: copy ...
 +after-brace: jump 0:offset
 
-:(scenario "break_nested")
+:(scenario break_nested)
 recipe main [
   1:integer <- copy 0:literal
   {
@@ -276,7 +276,7 @@ recipe main [
 ]
 +after-brace: jump 4:offset
 
-:(scenario "break_nested_degenerate")
+:(scenario break_nested_degenerate)
 recipe main [
   1:integer <- copy 0:literal
   {
@@ -289,7 +289,7 @@ recipe main [
 ]
 +after-brace: jump 3:offset
 
-:(scenario "break_nested_degenerate2")
+:(scenario break_nested_degenerate2)
 recipe main [
   1:integer <- copy 0:literal
   {
@@ -301,7 +301,7 @@ recipe main [
 ]
 +after-brace: jump 2:offset
 
-:(scenario "break_label")
+:(scenario break_label)
 recipe main [
   1:integer <- copy 0:literal
   {
@@ -310,7 +310,7 @@ recipe main [
 ]
 +after-brace: jump +foo:offset
 
-:(scenario "break_unless")
+:(scenario break_unless)
 recipe main [
   1:integer <- copy 0:literal
   2:integer <- copy 0:literal
@@ -325,7 +325,7 @@ recipe main [
 +after-brace: jump-unless 2, 1:offset
 +after-brace: copy ...
 
-:(scenario "loop_unless")
+:(scenario loop_unless)
 recipe main [
   1:integer <- copy 0:literal
   2:integer <- copy 0:literal
@@ -340,7 +340,7 @@ recipe main [
 +after-brace: jump-unless 2, -1:offset
 +after-brace: copy ...
 
-:(scenario "loop_nested")
+:(scenario loop_nested)
 recipe main [
   1:integer <- copy 0:literal
   {
@@ -355,7 +355,7 @@ recipe main [
 +after-brace: recipe main
 +after-brace: jump-if 4, -5:offset
 
-:(scenario "loop_label")
+:(scenario loop_label)
 recipe main [
   1:integer <- copy 0:literal
   +foo
@@ -367,7 +367,7 @@ recipe main [
 
 //: test how things actually run
 :(scenarios run)
-:(scenario "brace_conversion_and_run")
+:(scenario brace_conversion_and_run)
 recipe test-factorial [
   1:integer <- copy 5:literal
   2:integer <- copy 1:literal