From fc0262447a128ec8047689ddb885cffa8aa6e2dc Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Fri, 3 Jul 2026 05:01:26 -0400 Subject: [tnslc] Fix some parsing issues --- tnslc/compile/var.tnsl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tnslc/compile/var.tnsl') diff --git a/tnslc/compile/var.tnsl b/tnslc/compile/var.tnsl index 8babc1b..0154931 100644 --- a/tnslc/compile/var.tnsl +++ b/tnslc/compile/var.tnsl @@ -944,6 +944,7 @@ struct Var { # Typechecking structs /; _tc_struct (~Var other) [bool] + _printf("TC_STRUCT\n\0") /; if (other`.is_struct() == false) return false ;/ @@ -1237,7 +1238,7 @@ struct Var { # - If builtin then move based on size (byte, word, dword, qword) # - If pointer then move qword # - If struct then move via rep movsb - + _printf("SET\n\0") /; if (self.is_struct() == true) # Struct set self._set_struct(buf, other) @@ -1314,6 +1315,7 @@ struct Var { ~int32 p = vcpy.ptrc.get(idx) p` = set ;; else + _printf("TAKE_PTR\n\0") /; if (self.is_struct() == true) self._set_struct_r(buf, reg) ;; else @@ -1859,7 +1861,7 @@ struct Var { ;/ /; member (~CompBuf buf, ~uint8 name) [Var] - + _printf("MEMBER\n\0") /; if (self.is_struct() == false) _printf("ERROR: Attempted to get a member named \"\0") _printf(name) -- cgit v1.2.3