This is a work-in-progress parser meant to deprecate the existing Ruby parser
in codegen/. This project will progess over multiple stages (PRs).
- Write a (minimal) parser with full coverage of the C headers in
include/(#3065). - Implement a templating engine, write easy to read templates.
- Start with Swift codegen, replicate existing API (no breakage).
- Complete codegen for remaining languages.
- Extend the parser to handle all valid C header syntax.
- Add explicit error types (right now it's just
Error::Todo). - Seperate parser logic from C header grammer (no refactoring required, just reorganization).
- Add explicit error types (right now it's just
- Update the entire building system.
$ cd codegen-v2
$ cargo runThis command reads the C headers in include/ and generates a
include_manifest.json file.