Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse slang.h for future language binding generation #5804

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

laurooyen
Copy link
Contributor

@laurooyen laurooyen commented Dec 8, 2024

This implements parsing of slang.h as part of #5565. It adds the specific requirements to parse that file to slang-cpp-parser which was introduced in #5675. Additionally this adds a new target slang-binding-generator that can be used in the future to implement the language bindings in. For now it just provides a testing environment. Even though this doesn't generate output yet, it already parses slang.h during the build process to ensure the work from this PR doesn't break once merged.

Currently a draft PR so people know this is being worked on and to collect feedback on how the lack of a preprocessor in the parser should be handled, see TODO: comments in the code.

Before this gets merged I'd still like to do some refactoring to reduce code duplication between the newly created slang-binding-generator and slang-cpp-extractor which it was derived from.

To test the parser, you may run a command similar to this: slang-binding-generator -d C:\dev\slang\include slang.h -dump.

@csyonghe csyonghe added the pr: non-breaking PRs without breaking changes label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants