imports are now python style with a twist: forms! import std ffi and import local myfile

This commit is contained in:
2023-09-06 22:43:03 -07:00
parent 0e4362eefb
commit 81296ee1d1
22 changed files with 58 additions and 50 deletions

View File

@ -1,4 +1,4 @@
import "c.pork"
import local c
export func b() {
c()

View File

@ -1,4 +1,4 @@
import "a.pork"
import local a
export func c() {
a()

View File

@ -1,4 +1,4 @@
import "b.pork"
import local b
export func d() {
b()

View File

@ -1,4 +1,4 @@
import "d.pork"
import local d
export func main() {
d()

View File

@ -1,4 +1,4 @@
import std "ffi/malloc.pork"
import std ffi.malloc
export func main() {
while true {

View File

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

View File

@ -1,6 +1,5 @@
export func main() {
while true {
println("Hello World")
break
}
}

View File

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