Exportable functions, common frontend, and scoped imports.

This commit is contained in:
alex committed 2023-09-03 02:26:21 -07:00
1 parent 7a771980e0
commit 4f567eb287
20 files changed
+336 -163

No files matched your search

+1 -1
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)
}
+1 -1
View File
@@ -1,5 +1,5 @@
import "module.pork"
func main() {
export func main() {
hello()
}
+1 -1
View File
@@ -1,3 +1,3 @@
func hello() {
export func hello() {
println("Hello World")
}
+1 -1
View File
@@ -1,4 +1,4 @@
func main() {
export func main() {
three = 3
two = 2