SDRAW does not work on my computer

I installed clisp on my ubuntu computer. I am trying to use sdraw to display a cons structure. But this sdraw does not work on my computer. I tried to use the examples given in A gentle indtroduction to symbolic computation . Can someone tell me how can I make it work?

[edit]

I used the following command

(sdraw '(alpha (barvo) charlie))

I received the following message

  *** - EVAL: undefined function SDRAW 

thanks

+4
source share
2 answers

Yes, finally, I got an answer. we need to download the file ["sdraw.generic"] [1] [1]: http://www.cs.cmu.edu/~dst/Lisp/sdraw/ , and we may need to download the file using the command.

  >(load "sdraw.generic") 

then use the sdraw command to display cons cons.

  >BreakBreak 40 [45]> (sdraw '(1 2 (10))) [*|*]--->[*|*]--->[*|*]--->NIL | | | vvv 1 2 [*|*]--->NIL | v 10 
+5
source

You can run the generic version of sdraw as follows

 CL-USER> (load "sdraw.generic") CL-USER> (sdraw:sdraw '(abc (de) f)) 

This will result in terminal / REPL output

sdraw-generic

But if you want a fancier or GUI version, sdraw.gui

 CL-USER> (ql:quickload :clx) CL-USER> (load "sdraw.gui") CL-USER> (sdraw:sdraw '(ab (cd (e) f))) 

With a fancy result

enter image description here

+1
source

Source: https://habr.com/ru/post/1334847/


All Articles