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

Add support to clightgen for generating Csyntax AST as .v files #413

Merged
merged 3 commits into from
Sep 27, 2021

Conversation

xavierleroy
Copy link
Contributor

This is a variant of the "csyntaxgen" tool proposed in #404.

Rather than having two tools, "clightgen" and "csyntaxgen", and two code bases with some duplication, we just add a -csyntax option to the "clightgen" tool, making it produce Csyntax AST instead of Clight AST.

The implementation shares as much code as possible between the Clight and the Csyntax outputs.

Split reusable parts of ExportClight.ml off, into
ExportBase.ml and ExportCtypes.ml.

Rename exportclight/ directory to export/
As proposed in #404.

This is presented as a new option `-clight` to the existing `clightgen` tool.

Revise clightgen testing to test the Csyntax output in addition to
the Clight output.
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

Successfully merging this pull request may close these issues.

1 participant