clisp

How do I ask the Lisp compiler to ignore a (label-variety) function?

£可爱£侵袭症+ 提交于 2019-12-07 07:47:44
问题 I've stared at Steele's Common Lisp the Language until I'm blue in the face, and still have this question. If I compile: (defun x () (labels ((y ())) 5)) (princ (x)) (terpri) this happens: home:~/clisp/experiments$ clisp -c -q x.lisp ;; Compiling file /u/home/clisp/experiments/x.lisp ... WARNING in lines 1..3 : function X-Y is not used. Misspelled or missing IGNORE declaration? ;; Wrote file /u/home/clisp/experiments/x.fas 0 errors, 1 warning home:~/clisp/experiments$ Fair enough. So how do I

how does one compile a clisp program which uses cl-ppcre?

泄露秘密 提交于 2019-12-07 05:41:37
问题 On Debian, I am trying to compile a CLISP program which uses the cl-ppcre package. A sample, simplified program (which I will call variant 1) looks like this: (asdf:load-system :cl-ppcre) (princ (cl-ppcre:regex-replace-all "a" "abcde" "x")) (terpri) When I ran it thus:: clisp -q a3.lisp I got this: home:~/clisp/ercpp/compiling-program$ clisp -q a3.lisp ; Loading system definition from /usr/share/common-lisp/systems/cl-ppcre.asd into #<PACKAGE ASDF0> ; Registering #<SYSTEM :CL-PPCRE> as CL

How can I improve clisp error messages?

五迷三道 提交于 2019-12-06 07:27:45
I have been dabbling a little with clisp. It is a little perplexing that it doesn't print out the line number an error is at. Or, at least a general hint where the error is located. In some cases that must be possible, right? Is there any way I can get better error messages? As in most questions I see involving clisp, the answer is probably "don't use clisp". As you might be aware, clisp is but one of many implementations of Common Lisp, and probably not one of the more popular ones. SBCL, Clozure, Allegro, and LispWorks are probably better choices for most tasks. edit: Also, using SLIME in

Updating to ASDF 3.x in CLISP

别等时光非礼了梦想. 提交于 2019-12-05 15:30:19
I am trying to update ASDF in CLISP 2.49 (on Mac OS Sierra) to version 3.x. I have now version 2.26 of ASDF. I have tried everything I found online: I downloaded the latest version of ASDF as indicated in https://common-lisp.net/project/asdf/ but then when I eval (require "asdf") , as indicated in the manual ( https://common-lisp.net/project/asdf/asdf.html#Upgrading-ASDF ) nothing happens, I still have version 2.26. The manual also tells to load the file asdf.lisp , but the file is missing from the new version folder. I discovered that quicklisp had its own version of asdf.lisp and asdf.fas ,

How do I ask the Lisp compiler to ignore a (label-variety) function?

半腔热情 提交于 2019-12-05 12:25:18
I've stared at Steele's Common Lisp the Language until I'm blue in the face, and still have this question. If I compile: (defun x () (labels ((y ())) 5)) (princ (x)) (terpri) this happens: home:~/clisp/experiments$ clisp -c -q x.lisp ;; Compiling file /u/home/clisp/experiments/x.lisp ... WARNING in lines 1..3 : function X-Y is not used. Misspelled or missing IGNORE declaration? ;; Wrote file /u/home/clisp/experiments/x.fas 0 errors, 1 warning home:~/clisp/experiments$ Fair enough. So how do I ask the compiler to ignore function y? I tried this: (defun x () (labels (#+ignore(y ())) 5)) (princ

how does one compile a clisp program which uses cl-ppcre?

本秂侑毒 提交于 2019-12-05 09:51:10
On Debian, I am trying to compile a CLISP program which uses the cl-ppcre package. A sample, simplified program (which I will call variant 1) looks like this: (asdf:load-system :cl-ppcre) (princ (cl-ppcre:regex-replace-all "a" "abcde" "x")) (terpri) When I ran it thus:: clisp -q a3.lisp I got this: home:~/clisp/ercpp/compiling-program$ clisp -q a3.lisp ; Loading system definition from /usr/share/common-lisp/systems/cl-ppcre.asd into #<PACKAGE ASDF0> ; Registering #<SYSTEM :CL-PPCRE> as CL-PPCRE ; Registering #<SYSTEM :CL-PPCRE-TEST> as CL-PPCRE-TEST 0 errors, 0 warnings xbcde home:~/clisp

Ubuntu下Common Lisp环境的安装

99封情书 提交于 2019-12-04 23:57:36
1.安装emacs sudo apt-get install emacs 2.安装lisp环境 选择了sbcl sudo apt-get install sbcl clisp sbcl的具体执行程序位置是/usr/bin/sbcl..这个后面配置emacs时会用 3.安装slime sudo apt-get install slime slime的位置在/usr/share/common-lisp/source/slime..这个后面也会用 4.配置emacs cat ~/.emacs (setq inferior-lisp-program "/usr/bin/sbcl") ;sbcl的路径 (add-to-list 'load-path"/usr/share/common-lisp/source/slime") ;slime的路径 (require 'slime) (slime-setup) 5.进入CL交互环境 启动emacs..并按Alt+x(术语貌似是M-x)..输入slime..然后就等待一会儿.出现CL-USER>..就表示OK了.. 来源: oschina 链接: https://my.oschina.net/u/2245781/blog/883139

Emacs 使用 slime 调用 clisp 失败--无法调用 ASDF--已经解决

馋奶兔 提交于 2019-12-03 22:00:54
Emacs 使用 slime 调用 clisp 失败--无法调用 ASDF 执行到如下顺序时出错 ;; Swank started at port: 61252. CL-USER> ;; Loading file /Users/admin/.slime/fasl/2013-04-02/clisp-2.49-unix-unknown/contrib/swank-mrepl.fas ... ;; Loaded file /Users/admin/.slime/fasl/2013-04-02/clisp-2.49-unix-unknown/contrib/swank-mrepl.fas ;; Loading file /Users/admin/LispBox-0.93/slime-2013-04-05/contrib/swank-asdf.lisp ... 错误提示信息如下: Could not load ASDF. Please update your implementation or install ASDF2 and in your ~/.swank.lisp specify: (defparameter swank::*asdf-path* #p"/path/containing/asdf/asdf.lisp") [Condition of type SIMPLE-ERROR]

How to change SBCL's current directory?

a 夏天 提交于 2019-12-03 17:50:03
问题 It is very easy to change CLisp's current working directory: >cat ~/.clisprc.lisp ;;; The following lines added by ql:add-to-init-file: #-quicklisp (let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" (user-homedir-pathname)))) (when (probe-file quicklisp-init) (load quicklisp-init))) (cd "/media/E/www/qachina/db/doc/money") (load "money") However, it seems there is no cd similar function in SBCL. How can this be done with SBCL? 回答1: CL-USER> (sb-posix:chdir "/home/apugachev") 0 CL

Apache + mod_lisp + clisp

落花浮王杯 提交于 2019-12-03 07:22:45
问题 How to to configure apache + mod_lisp + clisp and set up a "Hello World!"? I couldn't find any complete howto on the subject. Thanks. Edit: Vebjorn's solution works, but then I don't how to code the "hello world!". Can anyone tell me how to proceed? There's something like SWANKing the clisp, then connect to it with SLIME, but then when I launch mod_lisp's demo, the test page is not served and my slime doesn't return? Thanks again. 回答1: Download http://www.fractalconcept.com:8000/public/open