Chapter 4. Building simple generators

4.1 The code munger generator type
4.2 The inline-code expansion generator model
4.3 The mixed-code generator model
4.4 The partial-class generator model
4.5 The tier generator model
4.6 Generating for various languages
4.7 Summary

In this chapter, we show you how to build simple generators based on the models presented in chapter 2. They provide an introduction to the practical aspect of building generators as well as a starting point for building your own generators. This is an ideal starting point for someone new to code generators. It’s also valuable for those experienced ...

Get Code Generation in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.