blob: 0c7a56e832fec60a2832a0cf75e5df9cc3c7f6ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# FelBind
A binding assistant and generator for C/C++ to mruby
### How I plan for it to work:
1. Run the scanner to scan the code and collect all functions and place them into a generation config file
2. Edit the configuration to customize how things should be bound
- for example, under what module or class a function should belong
- if a certain param should use self instead of passing in something
- ignore some functions if you dont need them
- insert bindings you made yourself
3. Run the configuration file - this generates the resulting code and header files
Todo:
- [X] parse C files for function and struct declarations
- [ ] design DSL for configuration file
- [ ] code configuration DSL to output valid C code
- [ ] make C parser generate configuration file
- [ ] do it for C++
|