GrammarTokenListing of GrammarToken Types »

GrammarToken[form]

is a grammar rules pattern object that represents any input of the specified form.

Details

Examples

open allclose all

Basic Examples  (2)

Deploy a grammar that makes use of a built-in GrammarToken:

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

Apply the grammar to an input:

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

Deploy a grammar that defines and uses an "Appliance" token:

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

Apply the grammar to an input:

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

Scope  (1)

Applications  (1)

Properties & Relations  (1)

See Also

GrammarRules  GrammarApply  Interpreter

Introduced in 2014
(10.0)