Update parser.cpp

This is the class definition file for the parser now.