clisp
This is GNU CLISP - an ANSI Common Lisp Implementation
Land of Lisp で取り上げていたLisp環境。
Windows10に導入
公式サイトでは、Windows用としてCygwin版を紹介しているが、
今となってはWSL (Windows Subsystem for Linux)が手っとり早いと思う。
WSLを起動すれば、次のコマンドでインストールできる
$ sudo apt install clisp
使い方
WSLで起動
$ clisp
終了
$ (quit)
ファイルを読み込んで実行
$ clisp
[1](load "hello.lisp")]
または
$ clisp (ファイル名)
基本コマンド
グローバル変数の定義
$ (defparameter *number* 1)
$ (defvar *number* 1)
変数出力
$ (print *number*)
関数定義
$ (deffun function-name (arg1 arg2)
(print arg1 arg2))
定義した関数を展開
$ #'test
$ (symbol-function 'test)
$ (fdefinition 'test)
エディター
VS_CodeでLisp
公式ページ
CLISP - an ANSI Common Lisp Implementation
https://clisp.sourceforge.io/
CLISP - GNU CLISP
https://lispuser.net/commonlisp/clisp.html
CLISP manual page
https://courses.cs.washington.edu/courses/cse415/03wi/clisp_doc/clisp.html
Google翻訳 - CLISP manual page
https://translate.google.co.jp/translate?hl=ja&sl=en&u=https://courses.cs.washington.edu/courses/cse415/03wi/clisp_doc/clisp.html
概要
Common Lispの勉強をするには、あるいは情報を得るには | κeenのHappy Hacκing Blog
https://keens.github.io/blog/2014/10/20/lisp-ja/
入門ページ
Lispって何? Lisp入門の入門 - Qiita
https://qiita.com/minekai374/items/f146009b403ed9395fe0
いまから始めるCommon Lisp - Qiita
https://qiita.com/t-sin/items/054c2ff315ec3b9d3bdc
Common Lisp入門 - Qiita
https://qiita.com/HaruoWakakusa/items/64f1b9a3f15ce85f0d0c
「Land of lisp」を読んだのでCommon Lispのまとめ - rbtnn雑記
http://rbtnn.hateblo.jp/entry/2015/10/18/204719
M.Hiroi's Home Page / xyzzy Lisp Programming > Common Lisp入門
http://www.nct9.ne.jp/m_hiroi/xyzzy_lisp.html#abclisp
リファレンス
clisp文法簡易リファレンス > 自分用
GCL SI Manual - GNU Common Lisp
https://lisphub.jp/doc/gcl/
Simplified Common Lisp reference
http://jtra.cz/stuff/lisp/sclr/index.html
CLHS: Chapter Index - Common Lisp ANSI仕様
http://www.lispworks.com/documentation/HyperSpec/Front/Contents.htm
逆引き Common Lisp クックブック:逆引きCommon Lisp
https://lisphub.jp/common-lisp/cookbook/index.cgi
Playground
A Lisp-to-Javascript compiler bootstrapped from Common Lisp
https://jscl-project.github.io/
https://github.com/jscl-project/jscl
#tools #lisp