summaryrefslogtreecommitdiff
path: root/tnslc/else.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-05-20 15:39:07 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-05-20 15:39:07 -0400
commitc0cf70216341d296e1d48fc9062d9445addcc60a (patch)
tree2b279b88e1fcfe16abe628bbca37936ff23f1167 /tnslc/else.tnsl
parenta54b2ecc431c54311ee4d32a870936880281b496 (diff)
Clean up else/else if
I was kinda drunk when I wrote the else if stuff. Now it should (partially) work at least
Diffstat (limited to 'tnslc/else.tnsl')
-rw-r--r--tnslc/else.tnsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/tnslc/else.tnsl b/tnslc/else.tnsl
new file mode 100644
index 0000000..8c4789d
--- /dev/null
+++ b/tnslc/else.tnsl
@@ -0,0 +1,14 @@
+/; main [int]
+
+ /; if (1 == 1)
+ /; if (1 == 0)
+ return 1
+ ;; else if (1 > 0)
+ break
+ ;; else
+ return 0
+ ;/
+ ;/
+
+ return 2
+;/ \ No newline at end of file