summaryrefslogtreecommitdiff
path: root/tnslc/simple.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-03-05 18:54:14 -0500
committerKyle Gunger <kgunger12@gmail.com>2023-03-05 18:54:14 -0500
commit8ac610f207bd8d94e02bfd43cbba930af7c1a5b3 (patch)
tree66a757de45e5e492cf9c42c424f2c53ffdc55c2c /tnslc/simple.tnsl
parent65793a7933de5da3c4c63bd69d32abe121f7ea30 (diff)
Struct testing, fixup _dot_eval
~ Structs still do not work, but have a standard representation now
Diffstat (limited to 'tnslc/simple.tnsl')
-rw-r--r--tnslc/simple.tnsl11
1 files changed, 9 insertions, 2 deletions
diff --git a/tnslc/simple.tnsl b/tnslc/simple.tnsl
index 5145d3f..d20bc0e 100644
--- a/tnslc/simple.tnsl
+++ b/tnslc/simple.tnsl
@@ -1,7 +1,14 @@
uint a = 2, b = 4
{}uint8 str = "Hello", c = "#"
+struct test {
+ int i, j,
+ bool k,
+ uint8 m
+}
+
/; main [int]
- int i = -b
- return i
+ test i
+ i.i = 9
+ return i.i
;/ \ No newline at end of file