LIPS-scheme / lips

Scheme based powerful lisp interpreter in JavaScript
https://lips.js.org
Other
414 stars 34 forks source link

You should be able to easily load from lips scheme module directory #354

Closed jcubic closed 6 months ago

jcubic commented 6 months ago

This works on devel branch:

(load (string-append (--> (require.resolve "@jcubic/lips")
                          (replace #/dist.*/ ""))
                     "lib/srfi/1.scm"))

There should be a way to load with:

(load "@jcubic/lips/lib/srfi/1.scm")

If possible, this should work when package change name.

jcubic commented 6 months ago

Now @lips is project root repo:

(load "@lips/lib/srfi/1.scm")

Need to check if you can do the same for the Browser.