Runtime evaluation: Difference between revisions
Content added Content deleted
(Added a "../" defore "compiler" in import statement. Added a comment about the working versions.) |
|||
Line 954: | Line 954: | ||
</lang> |
</lang> |
||
=={{header|Mathematica}}== |
=={{header|Mathematica}}/{{header|Wolfram Language}}== |
||
Mathematica's <code>ToExpression</code> evaluates an expression string as if it were placed directly in the code. Statements are just <code>CompoundExpression</code>s, so they also work. Any evaluation can be limited with <code>TimeConstrained</code> and <code>MemoryConstrained</code>. |
Mathematica's <code>ToExpression</code> evaluates an expression string as if it were placed directly in the code. Statements are just <code>CompoundExpression</code>s, so they also work. Any evaluation can be limited with <code>TimeConstrained</code> and <code>MemoryConstrained</code>. |
||
<lang Mathematica>Print[ToExpression["1 + 1"]]; |
<lang Mathematica>Print[ToExpression["1 + 1"]]; |