Support assignment in conditional parts of an expression#359
Support assignment in conditional parts of an expression#359keyboardDrummer wants to merge 14 commits intostrata-org:mainfrom
Conversation
atomb
left a comment
There was a problem hiding this comment.
This looks nice. My one comment could be addressed in a future PR, if at all.
| @@ -45,7 +45,7 @@ def formatHighType : HighType → Format | |||
| Format.joinSep (types.map formatHighType) " & " | |||
|
|
|||
| def formatStmtExpr (s:StmtExpr) : Format := | |||
There was a problem hiding this comment.
Given the DDM-defined syntax for Laurel, is this function strictly needed?
There was a problem hiding this comment.
Yes because the DDM grammar builds a parser/printer for a different type than the Laurel Lean type. There is only a transformation for the DDM type to the Lean type, but not vice versa, similar to Core.
|
This seems to have a lot of overlap with #358. What is the difference between them? |
This is stacked on top of that PR so it includes all the changes from that one, which sadly GH does not support well. Best to review this after that is merged. From a user perspective, this PR enables this test: |
Depends on #358
Changes
Testing
conditionalAssignmentInExpressiontest-case to test-fileT2_ImpureExpressionsBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.