summaryrefslogtreecommitdiff
path: root/tnslc/proper_calling.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-05-14 11:43:43 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-05-14 11:43:43 -0400
commit89f2b3b4a40749eba388ea998b99381a37bbeb53 (patch)
tree9e58cc6361202feed369a6ac11b542aa9e21d35a /tnslc/proper_calling.tnsl
parent3217d450a61d5acb5f268604ce97b7b134697afd (diff)
Indexing and proper string decomp
Diffstat (limited to 'tnslc/proper_calling.tnsl')
-rw-r--r--tnslc/proper_calling.tnsl21
1 files changed, 0 insertions, 21 deletions
diff --git a/tnslc/proper_calling.tnsl b/tnslc/proper_calling.tnsl
deleted file mode 100644
index 6fd5e69..0000000
--- a/tnslc/proper_calling.tnsl
+++ /dev/null
@@ -1,21 +0,0 @@
-struct CallMe {
- int a, b
-}
-
-/; method CallMe
- /; call_two (int a, b) [int]
- return a + b + self.a + self.b
- ;/
-
- /; call_four (int a, b, c, d) [int]
- return self.call_two(a + b, b * c + d) + self.call_two(a * b + c, c + d)
- ;/
-
-;/
-
-/; main [int]
- CallMe cm
- cm.a = 0
- cm.b = 0
- return cm.call_four(0, 2, 2, 0)
-;/ \ No newline at end of file