Runtime evaluation: Difference between revisions

m
No edit summary
Line 1,068:
 
=={{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>
Anonymous user