aoc2023 day2, codegen fixes, parsing fix

This commit is contained in:
2024-10-23 20:29:52 -07:00
parent 0843ae93e1
commit 8c8cdf4f7f
8 changed files with 147 additions and 5 deletions

View File

@@ -124,7 +124,7 @@ letExpr = do
alts <- startBlock $ someSame $ letAssign
keyword' "in"
scope <- typeExpr
pure $ foldl (\ acc, (n,fc,v) => RLet fc n (RImplicit fc) v acc) scope alts
pure $ foldl (\ acc, (n,fc,v) => RLet fc n (RImplicit fc) v acc) scope (reverse alts)
where
letAssign : Parser (Name,FC,Raw)
letAssign = do