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

This commit is contained in:
alex committed 2023-09-06 22:43:03 -07:00
1 parent 0e4362eefb
commit 81296ee1d1
22 files changed
+58 -50

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
import "c.pork"
import local c
export func b() {
c()
+1 -1
View File
@@ -1,4 +1,4 @@
import "a.pork"
import local a
export func c() {
a()
+1 -1
View File
@@ -1,4 +1,4 @@
import "b.pork"
import local b
export func d() {
b()
+1 -1
View File
@@ -1,4 +1,4 @@
import "d.pork"
import local d
export func main() {
d()
+1 -1
View File
@@ -1,4 +1,4 @@
import std "ffi/malloc.pork"
import std ffi.malloc
export func main() {
while true {
-5
View File
@@ -1,5 +0,0 @@
import "module.pork"
export func main() {
hello()
}
-1
View File
@@ -1,6 +1,5 @@
export func main() {
while true {
println("Hello World")
break
}
}
-3
View File
@@ -1,3 +0,0 @@
export func hello() {
println("Hello World")
}