FixedOrder

FixedOrder[p1,p2,]

is a grammar rules pattern object that represents a sequence of elements matching p1, p2, , in the fixed order given.

Details

Examples

open allclose all

Basic Examples  (2)

Deploy a grammar that requires elements to appear in a particular order:

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

Apply the grammar:

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

Extract elements of a string that appear in a particular order:

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

By default, elements of StringExpression are already ordered:

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

Applications  (1)

See Also

AnyOrder  Alternatives  GrammarRules  GrammarApply  PatternSequence  NoWhitespace

Introduced in 2015
(10.1)