Skip to content

Commit

Permalink
ES NAlt: TODO fix Conversion New -> Old
Browse files Browse the repository at this point in the history
  • Loading branch information
Anabra committed Nov 8, 2019
1 parent 96c8c2e commit 875826c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grin/src/Transformations/ExtendedSyntax/Conversion.hs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ instance Convertible New.Exp Exp where
convert (New.SReturn val) = SReturn (convert val)
convert (New.SBlock exp) = SBlock (convert exp)
convert (New.Alt cpat exp) = Alt (convert cpat) (convert exp)
-- TODO: This transformation is not sound if the body contains a reference to the alt name.
convert (New.NAlt cpat _ exp) = Alt (convert cpat) (convert exp)

convertToNew :: Exp -> New.Exp
Expand Down

0 comments on commit 875826c

Please sign in to comment.