Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Translate case expressions to SystemF #142

Open
florentc opened this issue Aug 16, 2022 · 0 comments
Open

Translate case expressions to SystemF #142

florentc opened this issue Aug 16, 2022 · 0 comments
Assignees
Labels
P1 critical: next release

Comments

@florentc
Copy link
Member

florentc commented Aug 16, 2022

#135 brought an improved surface language including case expressions (to avoid having to manually call match_Something functions). Support for these expressions is only syntaxic.

E.g.

  case @Bool @(Maybe x) mx of {
    Nothing -> False ;
    Just _ -> True
  }

Translation of these expressions to system F remains to be implemented in the Language.Pirouette.QuasiQuoter.ToTerm module.

Tests and examples making use of explicit calls to match_Something functions then have to be updated accordingly to use case expressions. Especially in Language.Pirouette.Example.IsUnity and the many test modules under tests/Pirouette.

@florentc florentc added the P1 critical: next release label Aug 16, 2022
@florentc florentc self-assigned this Sep 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P1 critical: next release
Projects
None yet
Development

No branches or pull requests

1 participant