1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Common lisp(clisp)をMacbookに入れる

Last updated at Posted at 2021-10-21

1. clispを入れる(brew install)

Terminal
electron@diynoMacBook-Pro ~ % brew install clisp
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
abricate                   cosign                     gotests                    lunzip                     python@3.10
actionlint                 cppzmq                     gtop                       ly                         qwt-qt5
age                        cpufetch                   htmlq                      lziprecover                rbw
apache-pulsar              cyral-gimme-db-token       iproute2                   microsocks                 red-tldr
aws-sso-util               drill                      jpdfbookmarks              mimalloc                   selene
bat-extras                 fann                       k2tf                       mmtabbarview               solana
bbtools                    feroxbuster                lastz                      murex                      terraform-rover
bottom                     fheroes2                   libavif                    neovim-qt                  texlive
ca-certificates            flamebearer                libmng                     openssl@3                  tfk8s
cassandra@3                g2o                        libnghttp2                 osc-cli                    tfupdate
clickhouse-cpp             git-cliff                  librist                    pkg-config-wrapper         toml11
clickhouse-odbc            git-credential-libsecret   lilypond                   pkgconf                    vespa-cli
cmake-docs                 gomodifytags               liqoctl                    postgresql@13              viddy
colima                     goproxy                    llvm@12                    python-tk@3.10             viu
==> Updated Formulae
Updated 1964 formulae.

( 省略 )

🍺  /usr/local/Cellar/python@3.9/3.9.7_1: 3,081 files, 54.8MB
Removing: /usr/local/Cellar/python@3.9/3.9.6... (3,204 files, 56MB)
Error: Directory not empty @ dir_s_rmdir - /usr/local/Cellar/python@3.9/3.9.6
electron@diynoMacBook-Pro ~ % 

2. 動作確認

Terminal
electron@diynoMacBook-Pro ~ % 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.92 (2018-02-18) <http://clisp.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-2018

Type :h and hit Enter for context help.

[1]> 
Terminal(common-lispREPL)
[1]> (+10 7)

*** - EVAL: 10 is not a function name; try using a symbol instead
The following restarts are available:
USE-VALUE      :R1      Input a value to be used instead.
ABORT          :R2      Abort main loop
Break 1 [2]> (+ 10 7)
17
Break 1 [2]> (- 10 7)
3
Break 1 [2]> (+ 10 5 (- 8 5))
18
Break 1 [2]> (exit)
Bye.
electron@diynoMacBook-Pro ~ %  
1
0
0

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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?