title: Reforming the grammar to remove shift reduce conflict in if-then-else
body: <p>How do I remove shift-reduce conflict for bison for the given grammar?</p>
  
  <pre><code> selection-stmt -&gt; if ( expression ) statement |
                        if ( expression ) statement else statement
  </code></pre>
  
  <p>A solution giving the modified grammar would be highly appreciated.</p>