如何在Emacs内部获得一个方案解释器? [英] How do I get a scheme interpreter working inside Emacs?

查看:165
本文介绍了如何在Emacs内部获得一个方案解释器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过SICP,我想要一个类似于交互式Python解释器的口译员,在我正在观看讲座和阅读这本书时玩耍。此外,我想让这个口译员在Emacs里运行,所以我可以在方案代码的文件和交互式解释器等之间来回跳转。



然而,我对于Emacs来说,这是相当新鲜的,并且还没有能够让它工作,或者找到一套明确的说明来使其工作。



它似乎我应该可以设置它,以便 Mx运行方案将打开一个交互式解释器,至少听起来像我想要的,但在这一刻只是返回搜索程序:没有这样的文件或目录,方案,我无法弄清楚我需要把哪些文件放在哪里补救这个。 p>

我正在运行安装的GNU Emacs 22.1.1(mac-apple-darwin,Carbon版本1.6.0)通过OS X 10.5安装DVD。

解决方案

您需要安装一个Scheme解释器,如MIT Scheme(这是r推荐实施SICP练习)。在Ubuntu上,它附带了一个名为scheme的符号链接,这是Emacs正在寻找的。您可以下载MacOS X here


I'm going through SICP and I'd like to have an interpreter analogous to the interactive Python interpreter to play around in while I'm watching the lectures and reading the book. Furthermore, I'd like this interpreter to run inside Emacs so I can jump back and forth between files of scheme code and the interactive interpreter and so forth.

However, I'm fairly new to Emacs and have not as of yet been able to get this to work or find one clear set of instructions to use in getting it to work.

It seems like I should be able to set it up so that M-x run-scheme will open up an interactive interpreter that at least sounds like exactly what I want, but at the moment this just returns Searching for program: no such file or directory, scheme and I haven't been able to figure out exactly what files I need to put where to remedy this.

I'm running GNU Emacs 22.1.1 (mac-apple-darwin, Carbon Version 1.6.0) as installed through the OS X 10.5 install DVD.

解决方案

You need to install a Scheme interpreter like MIT Scheme (which is the recommended implementation for going through the SICP exercises). On Ubuntu it comes with a symbolic link called "scheme" which is what Emacs is looking for. You can download it for MacOS X here.

这篇关于如何在Emacs内部获得一个方案解释器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆