summaryrefslogtreecommitdiff
path: root/tnslc/test.tnsl
diff options
context:
space:
mode:
authorKai Gunger <kgunger12@gmail.com>2026-06-29 23:53:13 -0400
committerKai Gunger <kgunger12@gmail.com>2026-06-29 23:53:13 -0400
commita3fc7c905b780244a8984698116f10ad3fe6f6ed (patch)
treebfb4c76cb7742154dac63e9c32d4036496d00d28 /tnslc/test.tnsl
parenta79a6d8f9be059b2bf2c1fc6548592546322f53d (diff)
[tnslc] some random fixes, still need to fix parser
Diffstat (limited to 'tnslc/test.tnsl')
-rw-r--r--tnslc/test.tnsl22
1 files changed, 15 insertions, 7 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl
index 77e1777..7921513 100644
--- a/tnslc/test.tnsl
+++ b/tnslc/test.tnsl
@@ -1,12 +1,20 @@
-/; get_first (~uint8 str) [uint8]
- return str{0}
-;/
-/; main (int argc, ~~uint8 argv) [int]
- int a, b
- get_first(a + b, 1)
+struct Test {
+ int i, j,
+ ~Test next
+}
- return get_first("1234")
+/; method Test
+ /; init
+ a.b.c
+ a`.b.c
+ self.next.init(1)
+ self.next().a
+ ;/
;/
+/; main
+ Test t
+ t.init()
+;/