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

HIR Syntax for Modules #200

Merged
merged 3 commits into from
Jul 2, 2024
Merged

HIR Syntax for Modules #200

merged 3 commits into from
Jul 2, 2024

Conversation

DavePearce
Copy link
Collaborator

This puts in place HIR syntax for modules, and updates Schema to properly support modules. However, there only relatively limited well-formedness checks at this stage.

The basics of schema-level modules are now in place, and we have two
tests added for them.  The outstanding problem is that of alignment.
Specifically, trace and schema module alignment.  Its not clear to me
this should be significant.  However, there is an issue whereby a schema
module index is being used (during alignment) to determine the correct
column index.
This fixes an issue with alignment whereby modules exist in the schema,
but not in the trace.  This can arise in valid circumstances.  For
example, when a module is declared which doesn't contain any columns.
Another situation is the prelude module, which is always declared
regardless of whether or not any columns are declared.
This fixes several bugs related to sorted permutations, and adds several
more tests.
@DavePearce DavePearce merged commit c8f4ca5 into main Jul 2, 2024
2 checks passed
@DavePearce DavePearce deleted the 197-hir-syntax-for-modules2 branch July 2, 2024 22:47
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