Skip to content

Instantly share code, notes, and snippets.

@mizunototori
Created January 11, 2017 05:22
Show Gist options
  • Select an option

  • Save mizunototori/5d5aadf60bfae94ef11ca92411cc7b1d to your computer and use it in GitHub Desktop.

Select an option

Save mizunototori/5d5aadf60bfae94ef11ca92411cc7b1d to your computer and use it in GitHub Desktop.
SBCL hello world

common lisp 実行手順

Hello world

;;; hello.lisp
(prin1 "Hello world!")

コンパイル&実行

quark@wlan1680:Lisp$ sbcl
This is SBCL 1.3.13, 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.
* (compile-file "./hello.lisp")

; compiling file "/Users/quark/WorkSpace/AtCorder/Lisp/hello.lisp" (written 11 JAN 2017 02:17:44 PM):
; compiling (PRIN1 "Hello world!")

; /Users/quark/WorkSpace/AtCorder/Lisp/./hello.fasl written
; compilation finished in 0:00:00.008
#P"/Users/quark/WorkSpace/AtCorder/Lisp/hello.fasl"
NIL
NIL
*
(load "./hello.lisp")
"Hello world!"
T
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment