
This includes a naive implementation of a module system where imported files have their imports recursively handled, strips the module/import AST nodes, and then evals everything into a flat environment using namespace prefixes like "Module.function".
6 lines
60 B
Plaintext
6 lines
60 B
Plaintext
!module Test
|
|
|
|
!import "lib/base.tri" Lib
|
|
|
|
main = Lib.not? t
|