parse shorthand class definitions