Mixing Left and Right Regular Rules
If mixing of left-regular and right-regular rules is allowed, we still have a linear grammar, but not necessarily a regular one. What is more, such a grammar need not generate a regular language: all linear grammars can be easily brought into this form, and hence, such grammars can generate exactly all linear languages, including nonregular ones.
For instance, the grammar G with N = {S, A}, Σ = {a, b}, P with start symbol S and rules
- S → aA
- A → Sb
- S → ε
generates, the paradigmatic non-regular linear language.
Read more about this topic: Regular Grammar
Famous quotes containing the words mixing, left, regular and/or rules:
“It was not till the middle of the second dance, when, from some pauses in the movement wherein they all seemed to look up, I fancied I could distinguish an elevation of spirit different from that which is the cause or the effect of simple jollity.In a word, I thought I beheld Religion mixing in the dance.”
—Laurence Sterne (17131768)
“We must remember the past, define the future, and challenge the presentwherever and however we can. It will take the rest of our lives even to begin. But then, what else have we to do?”
—Jane OReilly, U.S. feminist and humorist. The Girl I Left Behind, Introduction (1980)
“This is the frost coming out of the ground; this is Spring. It precedes the green and flowery spring, as mythology precedes regular poetry. I know of nothing more purgative of winter fumes and indigestions. It convinces me that Earth is still in her swaddling-clothes, and stretches forth baby fingers on every side.”
—Henry David Thoreau (18171862)
“Today the tyrant rules not by club or fist, but, disguised as a market researcher, he shepherds his flocks in the ways of utility and comfort.”
—Marshall McLuhan (19111980)