evaluating exoressions created from strings
Hello,
I am parsing code written for a C++ application into lisp code.
I run into a problem with binding of variables referenced in a string representation of the parsed code.
(slist (read-from-string s)))
(format t "~&slist: ~S" slist)
(format t "~&(equal x1 x2): ~S" (equal x1 x2))
(format t "~&(eval slist): ~S" (eval slist)))
slist: (EQUAL X1 X2)
(equal x1 x2): T
EDITOR::EVALUATION-ERROR
(equal x1 x2): T
EDITOR::EVALUATION-ERROR
Error while evaluating: The variable X1 is unbound.
Any help is appreciated.
Thanks,
Sheldon