summaryrefslogtreecommitdiff
path: root/tnslc/simple.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-02-22 15:05:44 -0500
committerKyle Gunger <kgunger12@gmail.com>2023-02-22 15:05:44 -0500
commit07b0a675d733c54ad395b085e2a10048c13b13c0 (patch)
tree8a30ff6e528792d9c8f8f5028cdbfd3c5a217e3b /tnslc/simple.tnsl
parent3c6707a09a90f461fe3c002ef4f55a0d072e7541 (diff)
basic addition and subtraction
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 7cbd0fd..795b626 100644
--- a/tnslc/simple.tnsl
+++ b/tnslc/simple.tnsl
@@ -1,5 +1,6 @@
-int a = 2
+uint a = 2, b = 4
/; raw main [int]
- raw return a
+ int c = a + b
+ raw return c + a - b
;/ \ No newline at end of file