summaryrefslogtreecommitdiff
path: root/docs/example_IR
blob: 3a20feb9963cfaa68e2c9fc5ce2b22972fc8744f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# v0.0.1
str1 = "Hello World"
skriv(str1)

# v0.0.2
# support for arithmetic operators:
# + plus
# - minus
# * multiplications
# / division
# % modulo
# ** exponential

# (1 + 2) * 3
t0 = 1
t1 = 2
t2 = int1 + int 2
t3 = 3
t4 = t2 * t3
skriv(int3)