From ... From: Erik Naggum Subject: Re: [Q]How to evaluate a string as lisp code? Date: 2000/03/29 Message-ID: <3163345278914696@naggum.no>#1/1 X-Deja-AN: 603984693 References: <8bs26b$ocv$1@gemini.ntu.edu.tw> <38E1904E.D87C908C@genworks.com> mail-copies-to: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 954358066 26947 195.0.192.66 (29 Mar 2000 19:27:46 GMT) Organization: Naggum Software; vox: +47 8800 8879; fax: +47 8800 8601; http://www.naggum.no User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 Mime-Version: 1.0 NNTP-Posting-Date: 29 Mar 2000 19:27:46 GMT Newsgroups: comp.lang.lisp * "David J. Cooper" | Let's say your string is in the variable called string. | | (eval (read-from-string string)) | | This will evaluate exactly one expression from the string. You'll have | to do something more (probably with subseq or something) to read and | evaluate multiple expressions from a string. note that read-from-string returns two values, the secondary of which is the position from which you could continue to read from the string. #:Erik