How do I execute a .scm script (outside of the REPL) with MIT-Scheme?

后端 未结 4 717
离开以前
离开以前 2020-12-08 00:17

I want to type something like \'scheme file.scm\' and have it interpret the file, and then take me back to my shell, rather than loading it in the REPL.

edit: I trie

4条回答
  •  长情又很酷
    2020-12-08 01:04

    I think what you want is SCM. You can execute a .scm script like this:

    $ scm -f foo.scm arg1 arg2 arg3

    See http://people.csail.mit.edu/jaffer/scm_3.html#SEC28 for more details.

    The SCM homepage: http://people.csail.mit.edu/jaffer/SCM

提交回复
热议问题