Parse and run the turning machine program