Type definition parser