evaluate parse trees