generic matcher, typedef writer start