From 65793a7933de5da3c4c63bd69d32abe121f7ea30 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sun, 5 Mar 2023 16:01:33 -0500 Subject: Get more basic code gen working + bitwise and, or, xor + negate values + fix basic variable setting + fix windows based line endings --- tnslc/simple.tnsl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tnslc/simple.tnsl') diff --git a/tnslc/simple.tnsl b/tnslc/simple.tnsl index bbe8ba3..5145d3f 100644 --- a/tnslc/simple.tnsl +++ b/tnslc/simple.tnsl @@ -1,6 +1,7 @@ uint a = 2, b = 4 -{}uint8 str = "Hello" +{}uint8 str = "Hello", c = "#" /; main [int] - return 273 + int i = -b + return i ;/ \ No newline at end of file -- cgit v1.2.3