mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-03-04 21:25:55 +08:00

- all import statement (native or script file) have the same syntax - allow relative (including parent directory) imports - cyclic imports are handled by caching the scripts - `import foo` can potentially import `<searchpath>/foo/_init.pk` - * import are not supported anymore
10 lines
120 B
Plaintext
10 lines
120 B
Plaintext
|
|
## import "../../functions.pk"
|
|
import ^^functions as fns
|
|
|
|
def bar()
|
|
assert(fns.f2() == "f2")
|
|
return "foo.bar"
|
|
end
|
|
|