diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2025-12-25 02:31:36 -0500 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2025-12-25 02:31:36 -0500 |
| commit | 0c7403f5894d46f513f8b57fb6fabbd568c9f5af (patch) | |
| tree | 24c17573f3838234558bd6076fcb812650608999 /tnslc/test.tnsl | |
| parent | 871bec579241882e8b05eb17cf177652e4f37781 (diff) | |
Add functions to member modules
Diffstat (limited to 'tnslc/test.tnsl')
| -rw-r--r-- | tnslc/test.tnsl | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl index b36a0d2..59b337a 100644 --- a/tnslc/test.tnsl +++ b/tnslc/test.tnsl @@ -1,7 +1,20 @@ -/; main (int argc, ~~uint8 argv) [int] - asm "mov r10, rdi" - asm "mov r11, rsi" - return argc +struct str { + ~uint8 a +} + +/; method str + /; str_get() [~uint8] + return a + ;/ +;/ + +/; module moda + /; method str + /; str_set(~uint8 a) + self.a = a + ;/ + ;/ ;/ + |