aboutsummaryrefslogtreecommitdiff
path: root/test/integers.tm
blob: c20d08e697c8d1ae9be9dc3c8c4ba659add3b54d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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,"