summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc15
1 files changed, 5 insertions, 10 deletions
diff --git a/test.toc b/test.toc
index 43ed69b..d442d91 100644
--- a/test.toc
+++ b/test.toc
@@ -1,15 +1,10 @@
#include "std/io.toc", io;
-Foo ::= struct(n::=12) {
- x ::= (n as float)*2.3;
-};
main ::= fn() {
- f : Foo();
- io.puti(f.n);
- io.puti(f.x as int);
- g : Foo(3);
- io.puti(g.n);
- io.puti(g.x as int);
+ if 3 > 5 {
+
+ } elif 45 > 32 {
+ } else {
+ }
};
-main(); \ No newline at end of file