From 8ac610f207bd8d94e02bfd43cbba930af7c1a5b3 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sun, 5 Mar 2023 18:54:14 -0500 Subject: Struct testing, fixup _dot_eval ~ Structs still do not work, but have a standard representation now --- tnslc/simple.tnsl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tnslc/simple.tnsl') 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 -- cgit v1.2.3