This website requires JavaScript.
Explore
Help
Sign In
r4
/
lang
Watch
1
Star
0
Fork
0
You've already forked lang
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
7773cc6c14
lang
/
examples
/
fib.script
13 lines
83 B
Plaintext
Raw
Normal View
History
Unescape
Escape
add VM
2021-12-22 17:23:24 +01:00
x := 1
init
2021-12-21 01:18:22 +01:00
y := 1
i := 60
rewrite expression parser with parentheses
2021-12-23 15:56:12 +01:00
make while loop parsing more elegant It is now possible to parse parts of the program and save the IR for later addition. This is currently used for while loops but will also make other control flow elements easier to implement in the future.
2021-12-22 12:52:16 +01:00
while i {
init
2021-12-21 01:18:22 +01:00
z := x + y
y = x
x = z
rename print() to putln()
2021-12-26 10:55:31 +01:00
putln(z)
init
2021-12-21 01:18:22 +01:00
i = i - 1
add VM
2021-12-22 17:23:24 +01:00
}
Reference in New Issue
Copy Permalink