feat: Enhance #use directive for directories and cwd

The `#use` directive now supports referencing entire directories,
automatically including all `.myc` files within them. Additionally,
environments are now initialized with the current working directory as a
default search path, simplifying module resolution.
This commit is contained in:
Michael Schimmel
2026-03-06 21:07:27 +01:00
parent a59367ba61
commit 84ef3f9aed
7 changed files with 94 additions and 55 deletions
+2 -3
View File
@@ -1,10 +1,9 @@
#use lib->sma
;; Output: void
#use rtl
(do
(def sma20 (SMA 20))
(def n 1000)
(def n 100)
(while (> n 0)
(do
(print "val=" n " sma20=" (sma20 n))