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:

Apply the grammar:

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

By default, elements of StringExpression are already ordered:

Applications  (1)

Deploy a simple calculator that supports infix operators, including precedence:

Apply the calculator grammar and actions:

Introduced in 2015
 (10.1)