Exportable functions, common frontend, and scoped imports.

This commit is contained in:
2023-09-03 02:26:21 -07:00
parent 7a771980e0
commit 4f567eb287
20 changed files with 336 additions and 163 deletions

View File

@ -7,7 +7,7 @@ func fib(n) {
else fib(n - 1) + fib(n - 2)
}
func main() {
export func main() {
result = fib(20)
println(result)
}

View File

@ -1,5 +1,5 @@
import "module.pork"
func main() {
export func main() {
hello()
}

View File

@ -1,3 +1,3 @@
func hello() {
export func hello() {
println("Hello World")
}

View File

@ -1,4 +1,4 @@
func main() {
export func main() {
three = 3
two = 2