Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Strings to Lists ???

1 view
Skip to first unread message

Ben Larner

unread,
Aug 29, 1996, 3:00:00 AM8/29/96
to

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
(lar...@netcom.com)

Erik Naggum

unread,
Aug 30, 1996, 3:00:00 AM8/30/96
to

[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")); }

Dieter Menszner

unread,
Sep 2, 1996, 3:00:00 AM9/2/96
to

ben...@sybase.com wrote about
"Strings to Lists ???":

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

Dieter


0 new messages