-
Notifications
You must be signed in to change notification settings - Fork 171
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
ffi pattern matching for pointers in args is broken #651
Comments
Ping @lal12 :-) |
It indeed doesn't like function prototypes without name. This isn't totally trivially fixable. I've thought for a while about using a PEG grammar based parser instead. |
So |
Yes. |
Yes it does, but it cannot count as a workaround if I have to do that hundreds of times :D. I just got it to work and (almost) automatically translate all bindings for Bun ffi using https://github.com/Morglod/bun-ffi-gen (and a lot of patchwork on its code). |
How about adding a bun ffi compatible wrapper? |
That sounds like a good idea! |
As long as the dynamic library is open as RTLD_LAZY and not RTLD_NOW like Bun does :D. |
Sounds good! |
For example, right now this signature:
will generate as AST of its argument:
in place of
The text was updated successfully, but these errors were encountered: