Code translator.

Discussion in 'AutoCAD' started by Yves, Apr 26, 2004.

  1. Yves

    Yves Guest

    Hi,

    I have a few lisp programs that I wrote, some of them 10 years ago.

    Now I don't use LISP anymore, I prefer VBA, is there a program out there
    that would translate my old lisp programs.

    I know it's impossible to get a perfect translation, but if I get half done
    automatically!

    Any inputs will be appreciated.

    Thanks.
     
    Yves, Apr 26, 2004
    #1
  2. Hi,

    I don't know of anything automatic.

    The approach I used was to paste the lisp code into the VBA editor and do
    search and replace on the obvious items such as:

    "(defun" with "Sub"
    "(while" with "Do While"
    etc.

    I searched for "(setq" and typed an "=" sign in the relevant place.

    After a while the program became sort of adjustable and then I looked for
    lines of codes still showing as error lines and edited from there.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Apr 26, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.