Runtime evaluation: Difference between revisions

Added EchoLIsp
(Omit from Lily)
(Added EchoLIsp)
Line 341:
? prog.eval(safeScope)
# value: 2</lang>
 
=={{header|EchoLisp}}==
'''eval''' : The evaluation of the eval argument must give a symbolic expression, which is in turn evaluated. Alternatively, '''read-from-string''' produces a s-expression - any kind of program - from a string.
<lang scheme>
(eval (list * 6 7))
→ 42
(eval '(* 6 7)) ;; quoted argument
→ 42
(eval (read-from-string "(* 6 7)"))
→ 42
</lang>
 
=={{header|Erlang}}==