diff options
Diffstat (limited to 'docs/example_IR')
| -rw-r--r-- | docs/example_IR | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/example_IR b/docs/example_IR index e492c21..3a20feb 100644 --- a/docs/example_IR +++ b/docs/example_IR @@ -1,3 +1,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) + |
