Skip to content

Commit

Permalink
Spacing.
Browse files Browse the repository at this point in the history
  • Loading branch information
robrix committed Mar 25, 2024
1 parent 54f3aa7 commit dff78b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion semantic-analysis/src/Analysis/Syntax/Python.hs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ eval eval = \case
-- FIXME: RaiseV2
-- FIXME: whatever the second field is
Statement (Py.StmtExpr e sp) -> setSpan sp (eval (Expr e))
Statement (Py.Fun n ps _r ss sp) -> let ps' = mapMaybe (\case { Py.Param n _ _ _ -> Just (ident n) ; _ -> Nothing}) ps in setSpan sp $ letrec (ident n) (dabs ps' (foldr (\ (p, a) m -> let' p a m) (suite ss) . zip ps'))
Statement (Py.Fun n ps _r ss sp) -> let ps' = mapMaybe (\case { Py.Param n _ _ _ -> Just (ident n) ; _ -> Nothing }) ps in setSpan sp $ letrec (ident n) (dabs ps' (foldr (\ (p, a) m -> let' p a m) (suite ss) . zip ps'))
Expr (Py.Var n sp) -> setSpan sp $ let n' = ident n in lookupEnv n' >>= maybe (dvar n') fetch
Expr (Py.Bool b sp) -> setSpan sp $ dbool b
Expr (Py.Strings ss sp) -> setSpan sp $ dstring (pack (mconcat ss))
Expand Down

0 comments on commit dff78b1

Please sign in to comment.