math expression parser as tree application