8 ms·
Or, heck, just hack together a little script to generate the code and hook it into your build system. You don't need anything as fancy as an annotation processo
by munificent 9y ago
Or, heck, just hack together a little script to generate the code and hook it into your build system. You don't need anything as fancy as an annotation processor. A handful of Python code could accomplish just as well.
- cel1ne 9y agoBut how do you access the original AST in your python?
- munificent 9y agoThere is no original AST. The Python outputs the AST classes, so it is the source of truth.
- cel1ne 9y agoI'm reading Annotations on Java-Code and generating classes from them, so I need to parse Java first.