Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odin binding generator script #207

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

monodop
Copy link
Contributor

@monodop monodop commented Jan 16, 2025

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 monodop force-pushed the binding-generators branch from 0cdc1fd to 73f30d1 Compare January 26, 2025 20:53
@monodop
Copy link
Contributor Author

monodop commented Jan 26, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant