1

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

Raphael
  • 73,212
  • 30
  • 182
  • 400
Iancovici
  • 675
  • 3
  • 14
  • 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,814
  • 1
  • 41
  • 67