Add support for enums and attributes
Refactored structs
You're taking too many shortcuts in the design. You don't add style formatting options in the writer and don't do any unit testing.
I think you should continue working directly on your fork. I'm sure you can repurpose the code to fit your specific needs. I should close this PR.
Hi @cogu , i convert PR to draft. Of course i am taking shortcuts as there are too many missing features. I think you shouldn't close PR yet. You can update your code base on this in correct way. After then i would close this branch. Otherwise i would keep it here as an inspiration for people who would miss same features...
Later i can provide better PRs divided by features. E.g. adding enums, fix blank line, ...