clay icon indicating copy to clipboard operation
clay copied to clipboard

Odin binding generator script

Open monodop opened this issue 11 months ago • 1 comments

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

monodop avatar Jan 16 '25 05:01 monodop

Also for reference, here's what the extracted symbols looks like (from parser.py) https://gist.github.com/monodop/6875a1d677eb85212494e21025f4bff0

monodop avatar Jan 26 '25 21:01 monodop