문제

I mean with SBCL I can run a script as easy as sbcl --script piece-of-code.lisp. But I can't find an obvious way to do so with LispWorks. Of course there's always a deploy and run option, but it requires a build script for every little exercise.

Is there a way to run a script with LispWorks without building an executable or running it from listener manually?

도움이 되었습니까?

해결책

I'd recommend you create lispworks console, like in: http://www.lispworks.com/documentation/lw60/LW/html/lw-177.htm#83244

Then, you can use lw-console -init foo.lisp without IDE.

다른 팁

The sbcl --script is to make sbcl aware the first line of your code might be #!/usr/bin/sbcl ... and LispWorks doesn't seem to have that.

However, if you just want to run a script and not make it executable, then you can write:

lispworks -init my-lisp-init

And it will load my-lisp-init.lisp if I understood the documentation right

The various command line option for the latest LispWorks 6.1 are described here:

http://www.lispworks.com/documentation/lw61/LW/html/lw-517.htm#pgfId-891723

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top