aboutsummaryrefslogtreecommitdiff
path: root/test/integers.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-24 16:07:52 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-24 16:07:52 -0500
commit65f684fb6ab7791ac8641fe2682d7eb5f1c0dde2 (patch)
tree2f18a92fafb1d406af93e2b7aa484889d68ace92 /test/integers.tm
parentc2228bf9861b38f2514d0cc8a270754bb3a03dd7 (diff)
Rename file extensions
Diffstat (limited to 'test/integers.tm')
-rw-r--r--test/integers.tm33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/integers.tm b/test/integers.tm
new file mode 100644
index 00000000..c20d08e6
--- /dev/null
+++ b/test/integers.tm
@@ -0,0 +1,33 @@
+
+>> 2 + 3
+= 5
+
+>> 2 * 3
+= 6
+
+>> 2 + 3 * 4
+= 14
+
+>> 2 * 3 + 4
+= 10
+
+>> 1i8 + 2i16
+= 3_i16
+
+>> 2 ^ 10
+= 1024 : Num64
+
+>> 3 and 2
+= 2
+
+>> 3 or 4
+= 7
+
+>> 3 xor 2
+= 1
+
+nums := ""
+for x in 5
+ nums ++= "{x},"
+>> nums
+= "1,2,3,4,5,"