Runtime evaluation: Difference between revisions

no edit summary
(Omitted languages: add Processing)
No edit summary
Line 1,066:
fundef(f);
/* f(x) := x^2 + 1 */</lang>
 
=={{header|Nanoquery}}==
The exec() function runs code contained within a string as if it were being read from a batch file, so any valid code may be run.
<lang nanoquery>exec("println \"hello, world\"")
exec("a = 1\nif a = 1\nprintln \"a is 1\"\nend\nprintln \"test\"")</lang>
{{out}}
<pre>hello, world
a is 1
test</pre>
 
=={{header|Oforth}}==
Anonymous user