Add class defs to parser