title: Bison/Flex, reduce/reduce, identifier in different production
body: <p>I am doing a parser in bison/flex.</p>
  
  <p>This is part of my code:</p>
  
  <p><img src="https://i.stack.imgur.com/ePdUm.jpg" alt="enter image description here"></p>
  
  <p>I want to implement the assignment production, so the identifier can be both boolean_expr or expr, its type will be checked by a symbol table.
  So it allows something like:</p>
  
  <pre><code>int a = 1;
  boolean b = true;
  if(b) ...
  </code></pre>
  
  <p>However, it is reduce/reduce if I include identifier in both term and boolean_expr, any solution to solve this problem?</p>