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

Single source of truth for import relations #40

Merged
merged 7 commits into from
Oct 6, 2022

Conversation

langston-barrett
Copy link
Collaborator

@langston-barrett langston-barrett commented Oct 6, 2022

Fixes #37

Still needs:

  • Generate import-*.dl from includes
  • Future: Reduce duplication between Fact Generator group/predicate names and Datalog/file names (Unify FactGenerator/Datalog relation names #42)
  • Future: Generate relation declarations from the includes file
  • Future: Remove todo.dl

Moving in the direction of having one source of truth for input predicates,
rather than duplicating the list of input predicates between the fact generator
and Datalog code.
This will help rewrite predicate_groups.cpp in terms of predicates.inc
These files shouldn't have any declarations nor rules in them. This will help
generate these files from an include file shared with the Fact Generator.
Next step: Do the same for the import-*.dl files.
Now the FactGenerator and Datalog code have the same source of truth about
relation and file names.
@langston-barrett langston-barrett marked this pull request as ready for review October 6, 2022 21:49
@langston-barrett langston-barrett merged commit 18e2d6e into main Oct 6, 2022
@langston-barrett langston-barrett deleted the lb/predicates-include branch October 6, 2022 22:15
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.

Single source of truth for input relations
1 participant