Regular Grammar - Extended Regular Grammars

Extended Regular Grammars

An extended right regular grammar is one in which all rules obey one of

  1. B → a - where B is a non-terminal in N and a is a terminal in Σ
  2. A → wB - where A and B are in N and w is in Σ*
  3. A → ε - where A is in N and ε is the empty string.

Some authors call this type of grammar a right regular grammar (or right linear grammar) and the type above a strictly right regular grammar (or strictly right linear grammar).

An extended left regular grammar is one in which all rules obey one of

  1. A → a - where A is a non-terminal in N and a is a terminal in Σ
  2. A → Bw - where A and B are in N and w is in Σ*
  3. A → ε - where A is in N and ε is the empty string.

Some authors call this type of grammar a left regular grammar and the type above a strictly left regular grammar.

Read more about this topic:  Regular Grammar

Famous quotes containing the words extended, regular and/or grammars:

    “Only very slowly and late have men come to realize that unless freedom is universal it is only extended privilege.”
    —Christopher Hill (b. 1912)

    ““I couldn’t afford to learn it,” said the Mock Turtle with a sigh. “I only took the regular course.”
    “What was that?” inquired Alice.
    “Reeling and Writhing, of course, to begin with,” the Mock Turtle replied; “and then the different branches of Arithmetic—Ambition, Distraction, Uglification, and Derision.”
    “I never heard of ‘Uglification,’” Alice ventured to say.”
    —Lewis Carroll [Charles Lutwidge Dodgson] (1832–1898)

    “A sure proportion of rogue and dunce finds its way into every school and requires a cruel share of time, and the gentle teacher, who wished to be a Providence to youth, is grown a martinet, sore with suspicions; knows as much vice as the judge of a police court, and his love of learning is lost in the routine of grammars and books of elements.”
    —Ralph Waldo Emerson (1803–1882)