summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc10
1 files changed, 4 insertions, 6 deletions
diff --git a/test.toc b/test.toc
index 532cc56..438efc3 100644
--- a/test.toc
+++ b/test.toc
@@ -1,21 +1,19 @@
-init(3);
#include "tests/std/io.toc";
-/*
#init(-50) init(1);
#init(30) init(2);
#init(-7) init(3);
#init(-42) init(4);
-*/
-x: int;
init ::= fn(a: int) {
- writes("Initializing... #");
- writei(a);
+ //writes("Initializing... #");
+ //writei(a);
x = 5;
}
+x: int;
+
main ::= fn() {
writes("Main's value of x is: ");
puti(x);