From: Ben Larner
Subject: Strings to Lists ???
Date: 
Message-ID: <32261E56.41C67EA6@sybase.com>
How do you convert a string to a list for evaluation or quoting ?

"(defun foo (x) (+ x x))"  ->  (defun foo (x) (+ x x))

OR

"(a b c)"  ->  '(a b c)


I am working in Allegro CL for Windows.  Any help would be
greatly appreciated.

Thanks, Ben
(······@netcom.com)

From: Erik Naggum
Subject: Re: Strings to Lists ???
Date: 
Message-ID: <3050380144463284@arcana.naggum.no>
[Ben Larner]

|   How do you convert a string to a list for evaluation or quoting?

`read' is the fundamental function for this.  see `read-from-string'.

#\Erik
-- 
main () { printf ("%d\n", sin ("foo")); }
From: Dieter Menszner
Subject: Re: Strings to Lists ???
Date: 
Message-ID: <50dsjk$rmq@news00.btx.dtag.de>
······@sybase.com wrote about
 "Strings to Lists ???":

> How do you convert a string to a list for evaluation or quoting ?
>
> "(defun foo (x) (+ x x))"  ->  (defun foo (x) (+ x x))
>
> OR
>
> "(a b c)"  ->  '(a b c)
>
>
> I am working in Allegro CL for Windows.  Any help would be
> greatly appreciated.
>
> Thanks, Ben
> (······@netcom.com)
>

(setq x (read-from-string "(a b c)"))
 .

  Dieter