Generate codes from codes.spec instead of in Perl