What you have looks pretty reasonable to me. @DannyWeitekamp’s CRE contains an absolute trove of great examples, including a structref generator that I used as a starting point for my own generator.
What you have looks pretty reasonable to me. @DannyWeitekamp’s CRE contains an absolute trove of great examples, including a structref generator that I used as a starting point for my own generator.