Lisp 1 - 概览/安装配置(sbcl)

公西翼
2023-12-01


关于 Lisp

Lisp,全名叫 LISt Processor,表处理语言

历史:Lisp 由约翰·麦卡锡 在1958年发明,在麻省理工学院(MIT)。是Fortran语言之后第二古老的高级编程语言。

特点:能有效地处理的符号信息,特别适合用于人工智能方案。



相关教程/书籍/资源


搭建编译环境

lisp 编译有很多方式实现,比如 sbcl


sbcl

sbcl : Steel Bank Common Lisp

Steel Bank Common Lisp (SBCL) is a high performance Common Lisp compiler.
It is open source / free software, with a permissive license.
In addition to the compiler and runtime system for ANSI Common Lisp, it provides an interactive environment including a debugger, a statistical profiler, a code coverage tool, and many other extensions.
SBCL runs on Linux, various BSDs, macOS, Solaris, and Windows. See the download page for supported platforms, and getting started guide for additional help.


安装 sbcl

$ brew install sbcl

$ sbcl --version
SBCL 2.1.9

安装后地址位于 /usr/local/Cellar/sbcl/


交互模式运行 Lisp

$ sbcl
This is SBCL 2.1.9, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
# 从这里开始输入你的内容, * 为自带的行标记;
* (+ 1 2 3 4 5)
15
* (quit) 

其它


2022-05-17(二)

 类似资料: