eval_string
eval_string — evaluates a string.
eval_string (string, use_parser?)
stringA string.
use_parsert specifies
that the string should be parsed as Gamma code instead of LISP
code.
The result of evaluating the string as if it were
a Lisp expression.
This function evaluates a string as if it were a Lisp expression, regardless of whether the file syntax is Gamma or Lisp.This function could be written in Lisp as:
(defun eval_string (string) (let ((x (parse_string string)))
(eval x)))
Gamma>eval_string("(+ 5 6)");11Gamma>testvalue = 75;75Gamma>eval_string("testvalue");75Gamma>