summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc16
1 files changed, 11 insertions, 5 deletions
diff --git a/test.toc b/test.toc
index d442d91..f4a1cd6 100644
--- a/test.toc
+++ b/test.toc
@@ -1,10 +1,16 @@
#include "std/io.toc", io;
+Foo ::= struct (n ::= 12) {
+ x ::= n;
+};
+
+Bar ::= struct {
+ a ::= -1243.3;
+};
main ::= fn() {
- if 3 > 5 {
-
- } elif 45 > 32 {
- } else {
- }
+
+ io.puti(Foo(3).x);
+ io.puti(Foo().n);
+ io.puti(Bar.a as int);
};