diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2023-03-05 16:01:33 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2023-03-05 16:01:33 -0500 |
commit | 65793a7933de5da3c4c63bd69d32abe121f7ea30 (patch) | |
tree | 8081a7c33080dbda03b0b1f78a9755cad6f6c12c /tnslc/simple.tnsl | |
parent | 7a2fe9afac30082137dd72a072d9a8afbbc45236 (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.tnsl | 5 |
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 |