summaryrefslogtreecommitdiff
path: root/tnslc/test.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-08-06 16:53:39 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-08-06 16:53:39 -0400
commit248fe38d3e2d932001a950b554c731f1698727f9 (patch)
tree1fba878dcd9c7defa2a0e3143cdcfd1b32936106 /tnslc/test.tnsl
parentedf3845e2720c2e9bf1b67c1c8b2b0e0f250f88e (diff)
[tnslc] binary operators
Diffstat (limited to 'tnslc/test.tnsl')
-rw-r--r--tnslc/test.tnsl13
1 files changed, 8 insertions, 5 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl
index 63ac2df..691e0fb 100644
--- a/tnslc/test.tnsl
+++ b/tnslc/test.tnsl
@@ -14,14 +14,17 @@ struct Geko {
}
/; module mod
+ int i = 0
/; whatev (~uint8 a) [uint8]
- return a{0}
+ # return a{0}
;/
;/
+int i = mod.i * 2 + 1 * 4 - 2
+
/; main [int]
- ~uint8 a = "asdf\0"
- whatev(a)
- whatev("asdf\0")
- return 0
+ # ~uint8 a = "asdf\0"
+ #whatev(a)
+ #whatev("asdf\0")
+ #return 0
;/