Regular Grammar - Mixing Left and Right Regular Rules

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:

    “Give me Catholicism every time. Father Cheeryble with his thurible; Father Chatterjee with his liturgy. What fun they have with all their charades and conundrums! If it weren’t for the Christianity they insist on mixing in with it, I’d be converted tomorrow.”
    —Aldous Huxley (1894–1963)

    “O Time and Change!—with hair as gray
    As was my sire’s that winter day,
    How strange it seems, with so much gone
    Of life and love, to still live on!
    Ah, brother! only I and thou
    Are left of all that circle now,—
    The dear home faces whereupon
    That fitful firelight paled and shone.”
    —John Greenleaf Whittier (1807–1892)

    “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 (1817–1862)

    “No rules exist, and examples are simply life-savers answering the appeals of rules making vain attempts to exist.”
    —André Breton (1896–1966)