3 ms·
Unless one uses an interpreter: $ /usr/local/bin/sbcl This is SBCL 2.2.1, an implementation of ANSI Common Lisp. More information about SBCL is availabl
by lispm 4y ago
Unless one uses an interpreter:
$ /usr/local/bin/sbcl
This is SBCL 2.2.1, 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.
* *evaluator-mode*
:COMPILE
* (setf *evaluator-mode* :interpret)
:INTERPRET
* (defmacro my-if (test a b)
(print "Hi, I'm the executing MY-IF macro")
`(if ,test ,a , b))
MY-IF
* (defun foo (a)
(my-if (> a 10) 'big 'small))
FOO
* (foo 11)
(foo 11)
"Hi, I'm the executing MY-IF macro"
BIG