fw #21: add pgen generation rules