"Expression" (interpreter type)

Wolfram Language expression.

DetailsDetails

  • "Expression" can be used in Interpreter and related constructs, including deployed smart form fields.
  • Use of "Expression" does not require connectivity to the Wolfram Cloud.

Allowed FormsAllowed Forms

  • Any valid Wolfram Language expression.

Restriction SpecificationsRestriction Specifications

InterpretationInterpretation

ExamplesExamplesopen allclose all

Basic Examples  (6)Basic Examples  (6)

Interpret expressions:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Restrict to a list of choices:

In[1]:=
Click for copyable input
Out[1]=

By default, only expressions with no side effect are allowed:

In[1]:=
Click for copyable input
Out[1]=
Out[1]=

This can be changed by allowing All symbols:

In[2]:=
Click for copyable input
Out[2]=

Restrict to a list of symbols:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

By default, a new context is created for the output symbols, but a custom context can be specified:

In[1]:=
Click for copyable input
Out[1]=
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Out[2]=

Specify contexts for the allowed and output symbols:

In[1]:=
Click for copyable input
Out[1]=