Open
Description
We should allow calling C functions by directly importing them from C header files. We have to parse the header file, and create the corresponding declaration in ASR. In pure Python mode, we have to implement some equivalent functionality using some of the projects below.
Prior art:
- Zig: https://ziglang.org/documentation/master/#Import-from-C-Header-File
- CFFI: https://cffi.readthedocs.io/en/latest/
- cppyy: https://cppyy.readthedocs.io/en/latest/
- pycparser: https://github.com/eliben/pycparser
- pyheaders: https://github.com/Roynecro97/pyheaders
- robotpy-cppheaderparser: https://github.com/robotpy/robotpy-cppheaderparser
Metadata
Metadata
Assignees
Labels
No labels