otabat / shen-c

A C implementation of the Shen programming language
70 stars 6 forks source link

[feature request] Load script from command line #1

Open vrescobar opened 5 years ago

vrescobar commented 5 years ago

Would it be possible to load a script from the command line?

shen-c myscript.shen

That might even enable the shebang and open the door to fast scripting:

#!/bin/shen-c

(print "hello unix scripts")
vrescobar commented 5 years ago

Looking at shen-sources/sources/toplevel.shen I realized that perhaps the right place to implement such feature is at the language library itself rather than at the implementation level, but I just got started looking at the shen docs and code, so I am still not totally sure