summaryrefslogtreecommitdiff
path: root/tnslc/simple.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-03-05 16:01:33 -0500
committerKyle Gunger <kgunger12@gmail.com>2023-03-05 16:01:33 -0500
commit65793a7933de5da3c4c63bd69d32abe121f7ea30 (patch)
tree8081a7c33080dbda03b0b1f78a9755cad6f6c12c /tnslc/simple.tnsl
parent7a2fe9afac30082137dd72a072d9a8afbbc45236 (diff)
Get more basic code gen working
+ bitwise and, or, xor + negate values + fix basic variable setting + fix windows based line endings
Diffstat (limited to 'tnslc/simple.tnsl')
-rw-r--r--tnslc/simple.tnsl5
1 files changed, 3 insertions, 2 deletions
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