Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


But how do you access the original AST in your python?


There is no original AST. The Python outputs the AST classes, so it is the source of truth.


I'm reading Annotations on Java-Code and generating classes from them, so I need to parse Java first.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: