Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Update to Raylib 3.7.0 #23

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Update to Raylib 3.7.0 #23

wants to merge 8 commits into from

Conversation

Andre-LA
Copy link
Owner

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

Andre-LA added 8 commits June 12, 2021 17:35
Using this new parser is a *huge* help and makes a binding update
possible, thanks @edubart!

Signed-off-by: André Luiz Alvares <andrluiz.alvares.alvares84@gmail.com>
Signed-off-by: André Luiz Alvares <andrluiz.alvares.alvares84@gmail.com>
Signed-off-by: André Luiz Alvares <andrluiz.alvares.alvares84@gmail.com>
Signed-off-by: André Luiz Alvares <andrluiz.alvares.alvares84@gmail.com>
Signed-off-by: André Luiz Alvares <andrluiz.alvares.alvares84@gmail.com>
Signed-off-by: André Luiz Alvares <andrluiz.alvares.alvares84@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants