Commits

Cat's Eye Technologies  committed f74557b

Fix some of the example programs.

  • Participants
  • Parent commits e89861c

Comments (0)

Files changed (7)

 
 Ack = ^ M, N {
     if M = Zero
-	Return N + One
+	return N + One
     else if N = Zero
-	Return Ack(M - One, One)
+	return Ack(M - One, One)
     else
-        Return Ack(M - One, Ack(M, (N - One)))
+        return Ack(M - One, Ack(M, (N - One)))
 }
 
 Num = 7
     if I > 30
       Print "*"
     else
-      Print "."
+      Print "/"
     I = I + 1
   }
 }
 F = ^ M,N {
-  Print "Hello from F", EoL, M, EoL, N, Eol, "Goodbye from F", EoL
+  Print "Hello from F", EoL, M, EoL, N, EoL, "Goodbye from F", EoL
   return M + N
 }
 
 F = ^{
   T = 123
-  Return ^{ Return 17 }
+  return ^{ return 17 }
 }
 
 Print F, EoL

File eg/funny.bhu

     Print "Q is ", Q, EoL
   }
   G;
-  Return G
+  return G
 }
 
 G = F()

File eg/funny2.bhu

   G;
   Q = 23;
   G;
-  Return G
+  return G
 }
 
 G = F()

File eg/infc2.bhu

 F = ^{
   Q = 17
-  Return ^{ T = 0 Print Q, EoL }
+  return ^{ T = 0 Print Q, EoL }
 }
 
 X = 10