Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

"HeldSemanticExpression" (interpreter type)

Wolfram Language expression given in natural language.

DetailsDetails

Allowed FormsAllowed Forms

  • Any free-form linguistics that represent a valid Wolfram Language expression.

Restriction SpecificationsRestriction Specifications

InterpretationInterpretation

ExamplesExamplesopen allclose all

Basic Examples  (7)Basic Examples  (7)

Interpret expressions and avoid evaluation:

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

Find out Wolfram Language representations of natural-language queries:

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

No evaluation is attempted when matching the choices:

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

By default, all symbols are allowed. Restrict to a list of allowed symbols:

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

By default, new symbols are created in $Context, 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]=
Out[1]=

Prevent the creation of any new symbol:

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