Complex import sample and support for import dependency cycles.

This commit is contained in:
2023-09-03 02:41:02 -07:00
parent 4f567eb287
commit bf3967544a
9 changed files with 33 additions and 17 deletions

3
examples/complex/a.pork Normal file
View File

@ -0,0 +1,3 @@
export func a() {
println("A")
}

6
examples/complex/b.pork Normal file
View File

@ -0,0 +1,6 @@
import "c.pork"
export func b() {
c()
println("B")
}

6
examples/complex/c.pork Normal file
View File

@ -0,0 +1,6 @@
import "a.pork"
export func c() {
a()
println("C")
}

6
examples/complex/d.pork Normal file
View File

@ -0,0 +1,6 @@
import "b.pork"
export func d() {
b()
println("D")
}

View File

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