Skip to content

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

Merged
xavierleroy merged 3 commits intomasterfrom
new-export
Sep 27, 2021
Merged

Add support to clightgen for generating Csyntax AST as .v files#413
xavierleroy merged 3 commits intomasterfrom
new-export

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