Lisp/Scheme interpreter without Emacs?

2019-03-09 03:59发布

I've been wanting to teach myself Lisp for a while. However, all the interpreters of which I've heard involve some flavor of emacs. Are there any command line interpreters, such that I could type this into the command line:

lispinterpret sourcefile.lisp

just like I can run perl or python.

While I'd also like to become more familiar with Emacs (if only not to be frustrated when I work with somebody who uses Emacs), I'd rather decouple learning Emacs from learning Lisp.

Edit: I actually want to follow SICP which uses Scheme, so an answer about Scheme would be more useful. I'm just not that familiar with the differences.

标签: lisp scheme
12条回答
时光不老,我们不散
2楼-- · 2019-03-09 04:16

Another good dialect of lisp is cmucl. They used to love to brag about being the "fastest" lisp.

查看更多
欢心
3楼-- · 2019-03-09 04:17

It seems like scheme shell is suitable for your purpose. Take a look at http://www.scsh.net/index.html

查看更多
smile是对你的礼貌
4楼-- · 2019-03-09 04:19

I often write lisp shell scripts which start with this line:

#!/usr/bin/clisp

Then you don't even need to type "lispinterpret" on the command-line. Just mark the script executable and run it directly.

查看更多
Summer. ? 凉城
5楼-- · 2019-03-09 04:19

The most widely used IDE for Common Lisp, particularly in the free software subset of the community, is in fact SLIME, which runs on Emacs. You can use whatever CL compiler you prefer and invoke Lisp source files the way you describe, but if you do that, you won't be taking advantage of many of Lisps dynamic features that are so incredibly useful while developing your application.

I suggest you take a look at this SLIME demonstration video to see what I mean, even though it might be a bit outdated at this point.

If the problem is that you (think you) don't like Emacs, I seriously suggest you try to learn it. Seriously. No, really, I mean that. However, there are alternatives, such as the IDEs provided by commercial Lisp implementations such as Allegro and Lispworks (free trials available), or an Eclipse plug-in called Cusp.

查看更多
爷、活的狠高调
6楼-- · 2019-03-09 04:22

Most scheme interpreters that I am familiar with can be run from the command line. (Much of the list below is extracted from the comparative table at Alexey Radul's Scheme Implementation Choices page. There is a more extensive list at schemewiki but that page does not immediately provide command-line invocation syntax.)

Here's how you run a number of implementations at the command line:

查看更多
小情绪 Triste *
7楼-- · 2019-03-09 04:27

Did you try Allegro CL from http://www.franz.com/?

查看更多
登录 后发表回答