Hi:
I am a newbie in LISP (done about 1 week of programming).
As my programs have become longer, I want to write them in a file.
I would like to write them in a file (.lsp extension) and then
have the lisp interpreter read that file. I refered to the clisp
manual but I could find that could of some help.
Thanks for your time and consideration.
regards
Saifi
__________________________
Sent via Deja.com http://www.deja.com/
Before you buy.
Hello,
Simply use a text editor such as GNU Emacs (it has a lisp editing mode),
or any other text editor.
Save your files with extension ".lsp"
Then you can load your file within you lisp interpreter :
using the function "load"
(load "test.lsp")
Bye !
saifikhan wrote:
>
> Hi:
> I am a newbie in LISP (done about 1 week of programming).
> As my programs have become longer, I want to write them in a file.
>
> I would like to write them in a file (.lsp extension) and then
> have the lisp interpreter read that file. I refered to the clisp
> manual but I could find that could of some help.
>
> Thanks for your time and consideration.
>
> regards
> Saifi
> __________________________
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
From: Friedrich Dominicus
Subject: Re: Reading the code from a lisp file
Date:
Message-ID: <38B23C85.D6E50309@inka.de>
saifikhan wrote:
>
> Hi:
> I am a newbie in LISP (done about 1 week of programming).
> As my programs have become longer, I want to write them in a file.
>
> I would like to write them in a file (.lsp extension) and then
> have the lisp interpreter read that file. I refered to the clisp
> manual but I could find that could of some help.
(load "my-program.lsp)
(apropos 'load)
(describe 'load)
check what the environments offer you. It will pay of sooner than later.
Regards
Friedrich