This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 onlylpegrex
).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:
Eventually I'll add a wrapping pass (like adding unbounded arrays), probably between
Simplified AST
andNelua 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