Implemented variable scopes

This commit is contained in:
Eduard Urbach 2024-07-15 16:51:36 +02:00
parent 96078f40d8
commit 1bf288b8fd
Signed by: eduard
GPG key ID: 49226B848C78F6C8
13 changed files with 81 additions and 26 deletions

View file

@ -0,0 +1,11 @@
main() {
syscall(60, factorial(5))
}
factorial(x) {
if x <= 1 {
return 1
}
return x * factorial(x - 1)
}