Runtime evaluation: Difference between revisions

Added Rebol code
(Swift is N/A)
(Added Rebol code)
Line 984:
 
And, of course, both of these methods can use Racket's multilingual capabilities and evaluate the code in a language with different semantics.
 
=={{header|REBOL}}==
The [http://www.rebol.com/r3/docs/functions/do.html do] function evaluates a script file or a series of expressions and returns a result.
 
It performs the fundamental interpretive action of the Rebol language and is used internally within many other functions such as <tt>if, case, while, loop, repeat, foreach</tt>, and others.
<lang rebol>a: -5
b: 7
answer: do [abs a * b] ; => 35</lang>
 
=={{header|REXX}}==
Anonymous user