Runtime evaluation: Difference between revisions
Content added Content deleted
(Omitted languages: add Processing) |
No edit summary |
||
Line 1,066: | Line 1,066: | ||
fundef(f); |
fundef(f); |
||
/* f(x) := x^2 + 1 */</lang> |
/* 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}}== |
=={{header|Oforth}}== |