如何让方案解释器在 Emacs 中工作? [英] How do I get a scheme interpreter working inside Emacs?

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

问题描述

我正在学习 SICP,我希望有一个类似于交互式 Python 解释器的解释器,可以在我观看讲座和阅读本书时使用.此外,我希望这个解释器在 Emacs 中运行,这样我就可以在方案代码文件和交互式解释器等文件之间来回跳转.

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.

但是,我对 Emacs 还很陌生,到目前为止还没有能够让它工作或找到一套明确的说明来使用它来工作.

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.

似乎我应该能够设置它以便 Mx run-scheme 将打开一个交互式解释器,至少听起来正是我想要的,但目前这只是返回正在搜索程序:没有这样的文件或目录,方案,我一直无法确切地弄清楚我需要将哪些文件放在哪里来解决这个问题.

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.

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

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.

推荐答案

您需要安装一个 Scheme 解释器,如 MIT Scheme(这是通过 SICP 练习的推荐实现).在 Ubuntu 上,它带有一个名为scheme"的符号链接,这正是 Emacs 正在寻找的.您可以在 此处下载适用于 MacOS X 的它.

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天全站免登陆