parsing pretty printed expressions in order to compare it with its original