Interpreter - call internal procedures

This commit is contained in:
Ginger Bill
2016-10-30 19:20:47 +00:00
parent ca311c4a59
commit 0ffe4b600d
4 changed files with 582 additions and 0 deletions

View File

@@ -1,6 +1,11 @@
#import "fmt.odin"
main :: proc() {
foo :: proc(x: i64) -> i64 {
return -x + 1
}
x, y: i64 = 123, 321
y = x + 2 - y
x = foo(y)
}