1

Are there languages generated by linear grammer which aren't regular?

Raphael
  • 72,336
  • 29
  • 179
  • 389
Iancovici
  • 665
  • 3
  • 13
  • 26

1 Answers1

4

Of course. Look at the first example on Wikipedia:

$\qquad S \to aSb \mid \varepsilon$

is linear and generates $\{a^nb^n \mid n \in \mathbb{N}\}$, a non-regular language.

If you mean left-linear, or right-linear, then no - they are equivalent to REG.

Shaull
  • 17,159
  • 1
  • 38
  • 64