Simple demonstration how to use KotlinPoet to generate code with combination of KAPT and simple yet another calculator example.
- app - cli application module, contains hand written calculator and operation implementations.
- annotation - single annotation file module for marking classes suitable for annotation processing tool (requires to be in a separate module to avoid circular dependencies between modules).
- kapt-tool - annotation processor module, which actually generates code using KotlinPoet.