SDRAW is not working in my computer
i have installed clisp
in my ubuntu machine. I am trying to use sdraw
to display the cons structure. But this SDRAW
开发者_如何学Pythonis not working in my computer.I tried to use the examples given in the book A gentle indtroduction to symbolic computation
. Can anybody tell me how can i enable it to work?
[edit]
i used following command
(sdraw ' (alpha (barvo) charlie))
i got following message
*** - EVAL: undefined function SDRAW
Thanks
yes i finally got the answer. we need to load the file sdraw.generic
and we can have to load the file using the command.
>(load "sdraw.generic")
then use the sdraw
command to display the cons art.
>BreakBreak 40 [45]> (sdraw '(1 2 (10)))
[*|*]--->[*|*]--->[*|*]--->NIL
| | |
v v v
1 2 [*|*]--->NIL
|
v
10
You can run the generic version of sdraw
as follow
CL-USER> (load "sdraw.generic")
CL-USER> (sdraw:sdraw '(a b c (d e) f))
That will produce output to terminal/REPL
But if you want the fancier or GUI version, sdraw.gui
CL-USER> (ql:quickload :clx)
CL-USER> (load "sdraw.gui")
CL-USER> (sdraw:sdraw '(a b (c d (e) f)))
With fancy result
精彩评论