i have installed clisp
in my ubuntu machine. I am trying to use sdraw
to display the cons structure. But this SDRAW
is 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
Quick tip: If the "Draw" tab is greyed out so you can't click on it, select the "View" tab in the ribbon and choose "Print Layout." This should now allow you to use the Draw feature.
The fix I found was restarting the setting that allowed for automatic switching. To do this go to File > Options > Advanced then from here scroll down to Pen options and check off "Automatically switch between inking, selecting, typing, and panning".
Insert tab > Shapes > New Drawing Canvas.)Now, left-click anywhere on the word page to start drawing; hold the left mouse button and move your mouse to sketch out the shape/diagram you desire. The moment you release your hold over the left button, the drawing will be completed.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With