summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc29
1 files changed, 6 insertions, 23 deletions
diff --git a/test.toc b/test.toc
index fa9a336..bffe02a 100644
--- a/test.toc
+++ b/test.toc
@@ -1,27 +1,10 @@
-/*
-io ::= nms {
- #include "std/io.toc";
+// it would be nice if Arr.data.len == Arr.len (: but this will require some C code...
+Arr ::= fn (t :: Type) Type {
+ struct {
+ data : t;
+ }
};
-n ::= nms {
- x := 1;
- counter ::= fn() int { x += 1; x };
-};
-
-
main ::= fn() {
- a := n.counter();
- b := n.counter();
- n.counter();
- c := n.counter();
- io.puti(a);
- io.puti(b);
- io.puti(c);
+ arr : Arr(int);
};
-*/
-
-x := 5;
-main ::= fn() {
-
- x;
-}; \ No newline at end of file