Cusp, An Eclipse Lisp Plugin

来源:百度文库 编辑:神马文学网 时间:2024/04/28 19:24:29
 
Cusp, a Lisp plugin for Eclipse
 
What is it?
Cusp is a development environment for Lisp built on top of the Eclipse platform. It runsSBCL and hooks into the Swank half ofSlime.It provides a repl, project manager, an outline of your code for simplenavigation, code editor, syntax highlighting, auto-indentation,parenthesis matching, auto-completion, and more.
Cusp is both free of charge and free of warranty (however, if you‘re itching to be parted from your money, there is atip jar). It is developed by Tim Jasko, Sergey Kolos, and others.
Further questions can be answered at theFAQ orcusp-development@googlegroups.com.
Downloads (version0.8.0, Feb 14, 2007)
Cusp for Windows
Cusp for Mac OS X (Intel)
Cusp for Linux
Sergey Kolos has aCusp tutorial,where you can also find much fresher builds, with many of the nifty newfeatures you‘d find in the repository. Personally, I recommend hisbuild, but keep in mind that some things in it are still fairlyexperimental. He also has an experimentalEclipse Update sitefor Cusp, though it is in a very early stage, and you‘ll need toprovide your own sbcl. If you don‘t understand the previous sentence,just use one of the download links. The cutting edge can hurt!
Screenshots
Autocompletion

Docstring & Parameters hints

Macro expansion

Why Cusp?
Because EcLisp, however clever the name might have been, was already taken.
Why use Cusp?
There are many reasons you might prefer to use Cusp over Slime, including but not limited to:
You‘re just starting with Lisp, and don‘t want to go through the many-step process of downloading and building sbcl, doing a cvs checkout of Slime, Installing Emacs, and then setting everything up to work together.
Project management. It really is nice to have.
It‘s pretty.
You hate Emacs.
 
Of course, there are certainly reasons to prefer Slime:
You‘re used to it already.
It has more advanced features, if you can find them. If you‘re doing work where you need to debug multiple threads, for example, you better stick with Slime for now.
You love Emacs.
 
Getting Started
Make sure you have the latest version ofEclipse running under Java 5.
Download the appropriate version of Cusp for your operating system and unzip it into the plugins folder in the Eclipse directory.
Start Eclipse. Go to Window > Open Perspective > Other... and choose Lisp.
Right click in the Lisp Navigator and select New > Project. Choose Lisp Project in the wizard, give it a name of your chosing and hit Finish.
Open the Lisp file in the project you just created and code away!
Handy Key Shortcuts
All commands can be seen in the "Lisp" menu when you have a Lispfile open. Still, here‘s a quick reference to the most handy ones:
Alt+C - Compile current expression
Alt+K - Compile current file
Alt+. - Go to the definition of the current symbol
Alt+H - Open the Hyperspec definition of the current symbol
Alt+U - Undefine the current symbol
 
While in the Repl, use Ctrl+P and Ctrl+N to move through the historyof commands you have sent. Or just click the history button and findthem in the menu.
Changes
Paragent for hosting this project. While you‘re here, check out ourweb-app, which was itself built in Cusp.