#LISP
9 messages in this thread
Hello
Is there a way that LISP programs can be Executed and run from DOS?
Is this a practical way to program DOS applications? I have become well
versed in AutoLISP and would rather stick with LISP programming for DOS if
it is possable. ???
Thanks.. Dan
Robert – You can get a LISP interpreter (and compiler I believe) for DOS and
for Windows. You can also download David Betz's XLISP 2.0, from the AIEXPERT
forum here on CompuServe (GO AIEXPERT). They also have a LISP section there
complete with resident hard-core Common LISP and SCHEME freaks.
-TonyT.
Tony,
Isn't the XLisp in AIEXPERT an interpreter? Probably should use Borland or
someone for a compiler — more useful, you know. <g>
Brian
Brian – I'm not sure I understand your point. I told Daniel that he could
get LISP compilers for both DOS, and Windows. I also mentioned to him, that
he could get a LISP interpreter over on AIEXPERT, for free. There are quite
a few LISP compilers available, most of them will set you back a few grand,
and I don't think Dan is interested in spending that much for something more
"useful".
Borland "or someone" doesn't make a LISP compiler or interpreter.
-TonyT.
Sorry, Tony, if I ruffled your feathers. My point was that although the
Xlisp interpreter was fine to play around with, I don't think that it will
be useful in creating stand-alone DOS applications, am I right? For this
one would need a compiler. Part of the usefulness *I* found in AutoLisp is
that it has direct links into AutoCAD's variables and entities. Often this
can be mistaken for a usefulness outside of AutoCAD — I know I did, there
was even one time when I wrote a lisp routine to do a sorted list of
drawings from a directory — not thinking that a simple FOR EACH command in
DOS would do the same thing… without having to load AutoCAD to run a Lisp
routine! <sheepish grin>
As to Borland not making a Lisp Compiler — I may have been in error, I
will recheck their four-page spreads in _Computer Language_ and in _AI
Expert_…. They DO make a prolog compiler, and I may have assumed that
there was a Lisp Compiler also. I will henceforth preface my comments as to
the availability with references to advertisements by the companies.
Truce?
Brian
Brian – I've no feathers to ruffle <g>.
I've created plenty of DOS applications with XLISP. If you mean, can they
"stand alone" without the XLISP interpreter, no they can't, but I can still
use them anytime I want at a DOS prompt.
Lisp Compilers are rather expensive, or at least the better ones are. So, I
don't see anything wrong with using XLISP to write DOS apps, provided that
the interpreter is always there.
-TonyT.
I DLed the Xlisp to look at several, several months ago… I don't remember
if you can pass the instruction file to the interpreter on the command line
or not, similar to the GWBASIC FILE method (or even ACAD DWGNAME <g>).
Brian
Brian – Yes, You can pass XLISP.EXE the name of a .LSP file, and it'll
execute it without putting you into the interpreter's read-eval-print
loop. It will also automatically execute a file called INIT.LSP if it
is found.
-TonyT.
Daniel – I had the same idea and I found MuLISP by the SOFT WAREHOUSE in
Honolulu.
It is a complete lisp compiler. I have written a complete DOS shell for
our company that has been in use for a couple of years. It allows the user
to pick a drawing and an operation (edit in AutoCAD, Plot, copy to the
mainframe) and then exeute it. It also functions as screen saver and backs
up each PC to our VAX each night.
The cost for MULISP is not too great I think $400. If you are interested I
could get you an address tommorrow since I'm at home now and I only have
the address at work. They do not support OS/2 or windows, but the do have
a MAC version I think.
I have found the transition very easy. There are some differences though.
Mike J.