updates:)
[cc1516.git] / examples / peano.spl
index 73916b0..1c2cb78 100644 (file)
@@ -8,13 +8,9 @@ hyper(n, a, b){
 }
 
 main(){
-       var plus = hyper(2);
-       var times = hyper(3);
-       var power = hyper(4);
-       var arrow = hyper(5);
-
-       print("2 + 4 = ", plus(2, 4));
-       print("2 * 4 = ", times(2, 4));
-       print("2 ^ 4 = ", power(2, 4));
-       print("3 | 2 = ", arrow(3, 2));
+       print("s(3)=", hyper(0, 3, 3));
+       print("3+3=", hyper(1, 3, 3));
+       print("3*3=", hyper(2, 3, 3));
+       print("3^4=", hyper(3, 3, 4));
+       print("2|3=", hyper(4, 2, 3));
 }