Open anoojpatel opened 5 months ago
Since this PR has been open for some time, let me know if you want to pair program this together some time, want me to take it over entirely, or if you want to keep working on it solo. I've been rather slow to respond lately so I apologize for slowing things down a bit but your contribution is still very much appreciated :slightly_smiling_face:.
Hi! No worries, and sorry for the slow progress! I'm definitely open to pair program whenever you might be available! I'm hoping to finish this and merge it in
Thanks for the pairing session! Was a great learning experience and thanks for taking the time out :)
To summarize, things that are left is mainly handling the single line if a then b else c
disambiguating by creating a without_else_expr
with a boolean value to handle that case in the parser.
Add the Else Operator with type:
(else): Maybe a -> a -> a
This PR adds a new
Else
binary operator into the AST and handles the tracking of theMaybe
type constructor from the prelude.Maybe a
type from preludeMaybe a else b
definitions in the AST and Parsing by desugaring into a Match AST