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

[Summer] Add refinement type support for equations #16

Open
jlvargasme opened this issue May 2, 2022 · 1 comment
Open

[Summer] Add refinement type support for equations #16

jlvargasme opened this issue May 2, 2022 · 1 comment

Comments

@jlvargasme
Copy link
Collaborator

jlvargasme commented May 2, 2022

The let rec keyword is parsed to a list of equation expressions. However, the equation handler equation_desc on zparser.mly has no support for refinement types and the following example does not compile:

let rec (a, b) : btype {box(expression)} = body in output

For reference, take a look at the simple_type and type_expression implementation for refinement types on zparser.mly. We need to add a similar pattern match construct for equations.

[Easier task] - Add a pattern match for refinement types on the parse equation handler. This will enable refinement type annotation for let rec expressions.

@jlvargasme jlvargasme changed the title Add refinement type support for equations [Summer] Add refinement type support for equations May 2, 2022
@jchen-cs
Copy link
Collaborator

Being done by @SharmPranjal , #37

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

No branches or pull requests

2 participants