tricu/test/modules-1.tri
James Eversole 63504ba939 Rough draft of modules
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".
2025-01-27 12:24:30 -06:00

6 lines
60 B
Plaintext

!module Test
!import "lib/base.tri" Lib
main = Lib.not? t