-
Notifications
You must be signed in to change notification settings - Fork 2
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
Serialize IR #14
Comments
Generated wrappers should also contain a mapping between |
Partially implement #14 - allow `type_import.json` to be created when wrapgen script is executed. - ADDED :: - Properly implement anonymous type generation - Write and read dependency type import mappings
Something other than Jsony creates minified json, while I would prefer to minimize diffs since I might want to commit generated files. XML is better suited for that sort of data storage, but it is less widespread wrt. to language support. |
|
Make
CxxEntry
IR serializable into json (or something else). Right now the structure is cyclic on.typeStore
and some other fields (most likely only type store), so this needs to be addressed. Maybe just skip type store altogether and allow to re-create it again?Serializing IR would make it possible for someone else to just take generated
.json
and construct the own binding generator (for nim or any other language, though hcparse is nim-specific for now). Considering how much information hcparse is holding during the wrapper generation process, it would be criminal to not make it accessible to the end users as well.The text was updated successfully, but these errors were encountered: