GrammarApply

GrammarApply[grammar,input]

attempts to parse input according to the grammar defined by grammar.

Details and Options

Examples

Basic Examples  (1)

Deploy a simple grammar for adding numbers:

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

Apply the deployed grammar to a natural language string:

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

See Also

GrammarRules  Interpreter

Introduced in 2014
(10.0)
| Updated in 2015
(10.3)