"SemanticExpression" (Interpreter Type)
-
See Also
- Interpreter
- SemanticImport
- Restricted
- Failure
-
- Interpreter Types
- Expression
- HeldExpression
- InactiveExpression
- HeldSemanticExpression
- InactiveSemanticExpression
- MathExpression
- MathFormula
- WolframLanguageSymbol
- HeldMathExpression
- InactiveMathExpression
- HeldMathFormula
- InactiveMathFormula
- ComputedWolframLanguageSymbol
- Related Guides
-
-
See Also
- Interpreter
- SemanticImport
- Restricted
- Failure
-
- Interpreter Types
- Expression
- HeldExpression
- InactiveExpression
- HeldSemanticExpression
- InactiveSemanticExpression
- MathExpression
- MathFormula
- WolframLanguageSymbol
- HeldMathExpression
- InactiveMathExpression
- HeldMathFormula
- InactiveMathFormula
- ComputedWolframLanguageSymbol
- Related Guides
-
See Also
"SemanticExpression" (Interpreter Type)
Wolfram Language expression given in natural language.
Details
- "SemanticExpression" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "SemanticExpression" requires connectivity to the Wolfram Cloud.
Restriction Specifications
-
Restricted["SemanticExpression",{{choice1,…}}] one among choices Restricted["SemanticExpression",symbols] an expression involving only the given symbols (All, Automatic, or an explicit list) Restricted["SemanticExpression",symbols,contexts] an expression involving only the given symbols or symbols in the given contexts (All, Automatic, or an explicit list) Restricted["SemanticExpression",symbols,contexts,resultcontext] an expression involving only the given symbols or symbols in the given contexts, where the new symbols are created in resultcontext
Interpretation
- "SemanticExpression" can yield any Wolfram Language expression.
Examples
Basic Examples (6)
Restrict to a list of choices:
By default, all symbols are allowed. Restrict to a list of allowed symbols:
By default, new symbols are created in $Context, but a custom context can be specified:
See Also
Interpreter SemanticImport Restricted Failure
Interpreter Types: Expression HeldExpression InactiveExpression HeldSemanticExpression InactiveSemanticExpression MathExpression MathFormula WolframLanguageSymbol HeldMathExpression InactiveMathExpression HeldMathFormula InactiveMathFormula ComputedWolframLanguageSymbol