summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc24
1 files changed, 6 insertions, 18 deletions
diff --git a/test.toc b/test.toc
index 4811e46..ac60b69 100644
--- a/test.toc
+++ b/test.toc
@@ -1,19 +1,7 @@
-
-// 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;
- // len, cap : int;
- // }
- t
+getstdin ::= fn(){
+ buffer : int;
+ while true {
+ while buffer {
+ }
+ }
};
-
-arr_add ::= fn(t :: Type, a : &Arr(t), x : t) {
-};
-
-main ::= fn() {
- arr : Arr(int);
- for i := 1..100 {
- arr_add(int, &arr, 3);
- }
-}; \ No newline at end of file