mighty-gerbils / gerbil

Gerbil Scheme
https://cons.io
GNU Lesser General Public License v2.1
1.16k stars 112 forks source link

Fix issue 1242 #1243

Open vyzo opened 5 months ago

vyzo commented 5 months ago

Adds an -r|--run option to gxi so that it can force import and run main for a module, regardless of whether it is a library or interpreted module.

netlify[bot] commented 5 months ago

Deploy Preview for elastic-ritchie-8f47f9 ready!

Name Link
Latest commit 04211dc54ce802a799d1c3928a21cd9b11417494
Latest deploy log https://app.netlify.com/sites/elastic-ritchie-8f47f9/deploys/66697d357410bb0008b630e3
Deploy Preview https://deploy-preview-1243--elastic-ritchie-8f47f9.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

vyzo commented 5 months ago

Progress:

$ gerbil build
$ gerbil env gxi -r test/main.ss 
*** ERROR -- 
*** ERROR IN ? [Error]: Implement me!

But it is not purely interpreted, so this fails:

$ rm -rf .gerbil
$ gerbil env gxi -r test/main.ss 
*** ERROR IN gx#core-expand-import%__% -- 
*** ERROR IN ?
--- Syntax Error at (expand vyzo/test/main): cannot find library module
... form:   :vyzo/test/lib