Skip to content

Latest commit

 

History

History
 
 

codegen-v2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

About

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).
  • Update the entire building system.

Execution

$ cd codegen-v2
$ cargo run

This command reads the C headers in include/ and generates a include_manifest.json file.