LIPS-scheme / lips

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

You should be able to use load with BrowserFS #144

Open jcubic opened 3 years ago

jcubic commented 3 years ago

load function by default in browser use fetch it should use same logic as basic I/O to load from BrowserFS if exists and user use absolute path and handle (current-directory) correctly. Also in NodeJS it should fetch the file from url if filename is prefixed with http protocol.

jcubic commented 2 years ago

This should also work in NodeJS:

(load "https://cdn.jsdelivr.net/npm/@jcubic/lips@beta/lib/srfi/156.scm")