Runtime evaluation: Difference between revisions

Added Quackery.
(Added Wren)
(Added Quackery.)
Line 1,346:
''')
10</lang>
 
=={{header|Quackery}}==
 
Quackery includes the word <code>build</code> which takes a string of Quackery code and returns evaluable code, which can be evaluated with <code>do</code>. These two functionalities are combined in the word <code>quackery</code>, defined as <code>[ build do ] is quackery</code>, neatly summarising the way Quackery works.
 
Any Quackery code fragment can be passed as a string to <code>quackery</code>, with parameters and results being passed via the stack. In the sample code, the string <code>"1 swap times [ i 1+ * ]"</code>, when compiled and evaluated by <code>quackery</code>, will take the <code>10</code> placed on the stack beforehand, compute its factorial and leave the result on the stack for <code>echo</code> to echo to the screen.
 
<lang>10 $ "1 swap times [ i 1+ * ]" quackery echo</lang>
 
{{out}}
 
<pre>3628800</pre>
 
=={{header|R}}==
1,462

edits