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.
withStatement =symbol WithStatement*> children (flip (foldr make) <$>some withItem<*>term block')
244
244
where
245
-
with = makeTerm <$> location <*> (withItem <*> term (makeTerm <$> location <*> manyTermsTill expression (void (symbol WithItem) <|> eof)))
246
-
withItem = symbol WithItem*> children (flipStatement.Let<$> term expression <*> term (expression <|> emptyTerm))
247
-
<|>flipStatement.Let<$> term expression <*> emptyTerm
245
+
make (val, name) = makeTerm1 .Statement.Let name val
246
+
withItem = symbol WithItem*> children ((,) <$> term expression <*> term (expression <|> emptyTerm))
248
247
249
248
forStatement::AssignmentTerm
250
249
forStatement = symbol ForStatement>>=\ loc -> children (make loc <$> (symbol Variables*> children expressions) <*> term expressionList <*> term block' <*> optional (symbol ElseClause*> children expressions))
0 commit comments