From: saifikhan
Subject: Reading the code from a lisp file
Date: 
Message-ID: <88tbjh$d2e$1@nnrp1.deja.com>
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: FILEUX Laurent
Subject: Re: Reading the code from a lisp file
Date: 
Message-ID: <38B27352.655F7B30@fr.origin-it.com>
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