在SublimeText2中构建Lisp代码 [英] Build Lisp code in SublimeText2
本文介绍了在SublimeText2中构建Lisp代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Mac OS上的ST2中以任何方式构建和运行Common Lisp的方法是什么?我了解SLIME和Emacs,但我对ST感兴趣
Any way to build&run common lisp in ST2 on mac os? I know about SLIME and Emacs, but i'm interested in ST
推荐答案
首先,您必须安装解释器,以我为例,我使用了 sbcl .
First you have to install interpreter, in my case I used sbcl.
安装后,非常简单. 在ST2上,转到 首选项/浏览包 ,转到Lisp,添加新文件 Lisp.sublime-settings ,其中:
After installing that it's prety simple. On ST2 go to Preferences/Browse Packages, go to Lisp, add a new file Lisp.sublime-settings with:
{
"cmd": ["sbcl", "--script", "$file"],
"working_dir": "${project_path:${folder}}",
"selector": "source.lisp",
"osx":
{
"cmd": ["/opt/local/bin/sbcl", "--script", "$file"]
},
// exemple in windows with CLISP
"windows":
{
"cmd": ["clisp", "$file"]
}
// exemple in windows with SBCL
// "windows":
// {
// "cmd": ["sbcl", "--script", "$file"]
// }
}
这篇关于在SublimeText2中构建Lisp代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文