title: Determining language from a grammar
body: <p>I'm trying to solve an exercise on grammars and languages. Here is the exercise:</p>
  <p>Let the grammar G be:</p>
  <pre><code>G = {V, T, P, S}, 
  V = {S, A, B}, 
  T = {a, b, c},
  
  P = {S → ABA; A → a | bb; B → bS | ε}
  </code></pre>
  <p>What language is generated by this grammar?</p>
  <p>I've tried to derive every possible words accepted by this grammar, but I just can't seem to find a pattern. Anyone can help me with this problem?</p>