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

Migration improvements: insert missing assignments #666

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sjbreiner
Copy link
Contributor

@sjbreiner sjbreiner commented Aug 24, 2022

I added a preprocessing step to insert generators that are not assigned in a migration. I also added new syntactic sugar for maps to/from a @unit/@empty object

  • If a missing generator f is a HomExpr and its target is a unit object, then attach a new line to the body f => @delete
  • If a missing generator f is a HomExpr and its source is an empty object, then attach a new line f => @zero
  • For any other missing generator X, attach a new line X => X
  • Add a substitution step before calling parse_query_hom to replace @zero/@delete sugar with empty blocks.

Modified a few tests to make use of the new capability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants