Skip to main content

Chaining

Description

Some header operators can be chained. This means they can be applied one after another. Chained header operators are applied from left to right.

Usage examples

For example, the symbol B defines a grammar that will generate the subset of entries generated by A where forms in the text field end with "p", "t", or "k" and begin with "a" or "e":

A = texttranslation
eatmanger
applepomme
atà
apprenticeshipapprentissage
B = embedends textstarts text
Ap|t|ka|e

While ends and starts are commutative (meaning that their order doesn't matter for the outcome), in this case ends would be applied first, followed by starts.