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

A new Extension enum value for codegen #3071

Merged
merged 11 commits into from
Oct 17, 2023
Merged

A new Extension enum value for codegen #3071

merged 11 commits into from
Oct 17, 2023

Conversation

aseemr
Copy link
Collaborator

@aseemr aseemr commented Oct 17, 2023

This PR adds a new enum value Extension to the --codegen option. When F* is invoked with --codegen Extension, it will dump a tuple (bs, decls) in the binary format to a .ast file. Here bs is the bindings in the extraction environment and decls are the ML AST declarations.

The PR also changes the extension extractor interface:

  • The extraction extractor now takes in sigelt and returns ML decls.
  • Extension extractor provides two functions: extract_sigelt and extract_sigelt_iface.

Both these changes are for working toward extraction of Pulse.

@aseemr aseemr merged commit e2a4de3 into master Oct 17, 2023
@aseemr aseemr deleted the aseem_pulse_to_rust branch October 17, 2023 08:43
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