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

Implement sequence syntax #170

Merged
merged 7 commits into from
May 11, 2021
Merged

Implement sequence syntax #170

merged 7 commits into from
May 11, 2021

Conversation

michel-steuwer
Copy link
Member

This implements a syntax for sequences of arguments for primitives and resolves #168

Copy link
Member

@Bastacyclop Bastacyclop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The end result looks good to me 👍 However the code in the meta package is getting quite cryptic for me, I wonder if some high-level comments would help future maintenance.

meta/src/main/scala/meta/generator/DPIAPrimitives.scala Outdated Show resolved Hide resolved
src/main/scala/shine/DPIA/fromRise.scala Show resolved Hide resolved
} else {
ForeignFunctionCall(decl, inTs, args)(outT)
}
assert(inTs.length == n)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this should be part of our type-checking logic on DPIA primitive construction?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check if this is checked as part of the well-formedness check (or if it can be done there).

src/main/scala/shine/DPIA/Data.scala Show resolved Hide resolved
@michel-steuwer
Copy link
Member Author

I have addressed all your points, can you @Bastacyclop have a final look?

Copy link
Member

@Bastacyclop Bastacyclop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@michel-steuwer michel-steuwer merged commit 0d358ed into master May 11, 2021
@michel-steuwer michel-steuwer deleted the sequence-syntax branch May 11, 2021 12:30
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.

Add Syntax for sequences of types and expressions
2 participants