Add eval_string_lisp to read in and evaluate lisp forms from a string
commit0fe0e344815f2e9310c014231f905e9529cd99ed
authorKris Katterjohn <katterjohn@gmail.com>
Fri, 3 Sep 2021 23:56:30 +0000 (3 19:56 -0400)
committerKris Katterjohn <katterjohn@gmail.com>
Fri, 3 Sep 2021 23:56:30 +0000 (3 19:56 -0400)
tree8006f58809f46e8bebad2e1330fd25e152218772
parentdd14fa33d3277030f86217435b1753754a9e5b7f
Add eval_string_lisp to read in and evaluate lisp forms from a string

eval_string_lisp reads in lisp forms from a string and evaluates them.
Any values produced by the last form are returned as a Maxima list.

(%i1) eval_string_lisp ("(defun $foo () 5) (values 1 2 3)");
(%o1) [1,2,3]

(%i2) foo ();
(%o2) 5

This was discussed on the mailing list most recently in the thread
"Stringproc and inlined lisp functions" on 2021-05-17.
doc/info/Command.texi
doc/info/stringproc.texi
src/macsys.lisp