Chapter 9. Text Pattern Expressions

Text pattern expressions perform operations on the sets of possible text values that one or more terms recognize.

9.1 Primary Expressions

A primary expression can be:

• A text literal

• A reference to a syntax or token rule

• An expression indicating a repeated sequence of primary expressions of a specified length

• An expression indicating any of a continuous range of characters

• An inline sequence of pattern declarations

The following grammar reflects this structure.

Primary:

ReferencePrimary

TextLiteral

RepetitionPrimary

CharacterClassPrimary

InlineRulePrimary

AnyPrimary

9.1.1 Character Class

A character class is a compact syntax for a range of continuous characters. This expression requires that the text ...

Get The “Oslo” Modeling Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.