case checking partially working

This commit is contained in:
2024-08-04 15:46:43 -07:00
parent 067a83960d
commit 09227e444a
11 changed files with 174 additions and 33 deletions

View File

@@ -147,7 +147,7 @@ pPattern
<|> PatVar <$> ident
caseAlt : Parser CaseAlt
caseAlt : Parser RCaseAlt
caseAlt = do
pat <- parseOp -- pPattern -- term and sort it out later?
keyword "=>"
@@ -258,7 +258,7 @@ parseDecl = parseImport <|> parseSig <|> parseDef <|> parseNorm <|> parseData
export
parseMod : Parser Module
parseMod = do
sameLevel $ keyword "module"
keyword "module"
name <- ident
-- probably should be manySame, and we want to start with col -1
-- if we enforce blocks indent more than parent