raylib-nelua
raylib-nelua copied to clipboard
Update to Raylib 3.7.0
This is possible thanks to @edubart's LPegRex C11 parser!
(note: I did a little modification C11 parser, the only change is that it requires nelua.thirdparty.lpegrex
instead of only lpegrex
).
This new parser will replace my current parser and thus making the project easier to maintain, for this reason, the binding generator is being made from stratch on bindgen.lua
script and will replace the current generators too.
How it currently works
For now, this bindgen works with the some passes:
raylib-preprocessed.h --> C11 AST --> Simplified AST --> Nelua Code
Eventually I'll add a wrapping pass (like adding unbounded arrays), probably between Simplified AST
and Nelua Code
passes.
How to test:
enter the binding_generator
directory:
nelua-raylib$ cd binding_generator
run the script using nelua --script
and redirect the stdout to a file:
nelua-raylib/binding_generator$ nelua --script bindgen.lua > ../raylib.nelua