xAyB
xAyB is a symbolic pattern used in formal language theory and string templating to describe strings built from fixed segments with interposed variable parts. In this usage, x and y are fixed words over an alphabet, while A and B denote languages (sets of strings) or sublanguages. The pattern represents the set of all strings of the form x u y v, where u ranges over A and v ranges over B. Thus, xAyB denotes the concatenation x · A · y · B, interpreted as the language { x u y v | u ∈ A, v ∈ B }.
As a construct, xAyB is convenient for describing how larger languages are assembled from smaller parts. If
In grammar notation, xAyB can be represented by a production of the form S → x A y
Examples help illustrate the idea. Let x = "pre" and y = "post"; let A = { "a" } and B
See also: formal languages, pattern languages, concatenation, regular languages, context-free grammars.