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

Reflection API: add reflection for quotes #2673

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

W95Psp
Copy link
Contributor

@W95Psp W95Psp commented Aug 8, 2022

Hi,

This PR adds reflection for quotations, allowing for static or dynamic quotations and anti-quotations to be inspected and constructed from the reflection API.

This feature is particularly useful for quasiquotes (PR #2598). For example, I'm writing an OCaml FFI quasiquoter, and I need to inspect quotations from a meta-program, so that I can work on trees of nested quasiquotes (for example I need to transform nested QQ like let y = ... in [ml|let f x = `(fstar_fun [ml|x + `y|]) + something in f|] into a hybrid tree of ML and F* terms).

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.

None yet

1 participant