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)

GrammarTokenListing of GrammarToken Types »

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

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (2)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]=
Introduced in 2014
(10.0)