clay
clay copied to clipboard
Odin binding generator script
I generalized my clay.h parser and wrote a generator for odin bindings. Ideally we could write different generators for different output bindings to reduce the amount of work needed to keep everything up to date. For odin, there's a pretty large number of weird exceptions and edge cases, so it might be worthwhile standardizing them.
This generator/parser might be more effort than it saves though, curious to hear thoughts about it.
Preview: https://gist.github.com/monodop/51b0c9430d3ca4807bb806e249877e19
Also for reference, here's what the extracted symbols looks like (from parser.py) https://gist.github.com/monodop/6875a1d677eb85212494e21025f4bff0