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

Engine: generate AST destructors #941

Closed
W95Psp opened this issue Oct 2, 2024 · 0 comments · Fixed by #960
Closed

Engine: generate AST destructors #941

W95Psp opened this issue Oct 2, 2024 · 0 comments · Fixed by #960
Labels
engine Issue in the engine enhancement New feature or request

Comments

@W95Psp
Copy link
Collaborator

W95Psp commented Oct 2, 2024

This is basically implemented very partially by hand in Ast_utils.Make(F).Expect.
We want destructors for each constructor of expr', pat', item' that work directly on expr, pat and item.

From those basic generated destructors, we'll probably want more precise destructors, e.g. the existing concrete_app1 which expects a function application with one argument and whose function is an immediate concrete ident.
Such destructors will be simple to define via the generated ones.

@W95Psp W95Psp added enhancement New feature or request engine Issue in the engine labels Oct 2, 2024
W95Psp added a commit that referenced this issue Oct 3, 2024
W95Psp added a commit that referenced this issue Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Issue in the engine enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant