Generate parser at prepublish time