LoginSignup
9
7

More than 5 years have passed since last update.

MacにCommon Lisp環境をインストールする

Last updated at Posted at 2016-08-29

インストールする

MacにCommon Lisp環境をインストールするには、Homebrewでインストールする事ができる。
下記コマンドを入力するとインストールされる。

% brew install clisp

試してみる

clispを起動してみる

% clisp
  i i i i i i i       ooooo    o        ooooooo   ooooo   ooooo
  I I I I I I I      8     8   8           8     8     o  8    8
  I  \ `+' /  I      8         8           8     8        8    8
   \  `-+-'  /       8         8           8      ooooo   8oooo
    `-__|__-'        8         8           8           8  8
        |            8     o   8           8     o     8  8
  ------+------       ooooo    8oooooo  ooo8ooo   ooooo   8

Welcome to GNU CLISP 2.49 (2010-07-07) <http://clisp.cons.org/>

Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2010

Type :h and hit Enter for context help.

[1]>

足し算をしてみる

ポーランド記法で演算する事ができる。

[1]> (+ 1 2)
3
[2]> (+ 1 2 3)
6
[3]>

以上。

9
7
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
7