i am trying to write a Java program which can generate a binary tree from a given formula like:
3 - 7 * 5 or a -> (b v b) <-> g
I already tried the Shunting-yard-Algorithmus algorithm, which is mentioned here:
Algorithm for parsing first order logic formulas
and I already understand it. therefore I have no problems to writing the Reverse Polish notation from the given formula. I still don't know how this should help me to generate a tree from that.