Finished main parser skeleton.  Still needs testing and debugging.