From a3fc7c905b780244a8984698116f10ad3fe6f6ed Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Mon, 29 Jun 2026 23:53:13 -0400 Subject: [tnslc] some random fixes, still need to fix parser --- tnslc/test.tnsl | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'tnslc/test.tnsl') 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() +;/ -- cgit v1.2.3