Update parserClasses.h

Forgot to add a function for comparing types.