Added syntax tree parsing and value calculation.