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

Overhaul the language generators #357

Open
ajbennieston opened this issue Apr 4, 2018 · 1 comment
Open

Overhaul the language generators #357

ajbennieston opened this issue Apr 4, 2018 · 1 comment

Comments

@ajbennieston
Copy link
Member

Language generators currently fall into three categories:

  • pure templated generators, which use the base generator impl. to render a single template
  • python templated generators, which select the generator based on the python version, but ultimately generates a single template
  • go templated generators, which generate multiple outputs (the CGo file and the Go file)

Each generator should be promoted to a fully-fledged class that knows everything it needs to generate the bindings for its language. This should wrap up the current filters, which perform type transformations, and offer customisation points for arbitrary types, which we will match either by type name (boost::gregorian::date) or by template-name and arguments (std::optional<std::string>).

@ajbennieston
Copy link
Member Author

The first step, required by this ticket, is to provide the existing FFIG functionality through the new class-based approach. Once this is in place, we can add the customisation point logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant