title: How to remove inderect left recursion
body: <p>I need help removing the indirect left recursion from this grammar:</p>
  
  <pre><code>A -&gt; B (sB)*
       | dAd
       | z
  
  B -&gt; &lt;id&gt; 
       | sB 
       | A
  </code></pre>
  
  <p>So you could move from A->B->A.... without consuming any characters.</p>
  
  <p>I tried to fix it a couple different ways but keep running into issues because of this bit <strong>(sB)*</strong></p>
  
  <p>I am not sure if I'm doing something wrong or if the grammar is wrong in general.</p>