title: Write a code to generate the parse tree
body: <p>This question was asked to me in an interview question:</p>
  
  <p>Write a code to generate the parse tree like compilers do internally for any given expression.  For example:</p>
  
  <pre><code>a+(b+c*(e/f)+d)*g 
  </code></pre>