You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: src/Language/Python/Assignment.hs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -252,7 +252,7 @@ forStatement = symbol ForStatement >>= \ loc -> children (make loc <$> (symbol V
252
252
Just a -> makeTerm loc (Statement.Else (makeTerm loc $Statement.ForEach binding subject body) a)
253
253
254
254
whileStatement::AssignmentTerm
255
-
whileStatement = symbol WhileStatement>>=\ loc -> children (make loc <$> term expression <*>(makeTerm <$> location <*> manyTermsTill expression (void (symbol ElseClause) <|> eof))<*> optional (symbol ElseClause*> children expressions))
255
+
whileStatement = symbol WhileStatement>>=\ loc -> children (make loc <$> term expression <*>block<*> optional (symbol ElseClause*> children expressions))
256
256
where
257
257
make loc whileCondition whileBody whileElseClause =case whileElseClause of
258
258
Nothing-> makeTerm loc (Statement.While whileCondition whileBody)
0 commit comments