Runtime evaluation: Difference between revisions

Content added Content deleted
(new task for all-about-eval (sorry, don't have time to write any examples yet))
 
(Added Common Lisp section)
Line 4: Line 4:


For a more restricted task, see [[Eval in environment]].
For a more restricted task, see [[Eval in environment]].

=={{header|Common Lisp}}==

==Using a list to represent code==
<lang lisp>(eval '(+ 4 5)) ; Evaluate the program (+ 4 5)</lang>

==Using a String to represent code==
<lang lisp>(eval (read-from-string "(+ 4 5)")) ; Evaluate the program (+ 4 5)</lang>