This commit is contained in:
2024-09-29 07:17:55 -07:00
parent beb7b1a623
commit 9087ee6490
27 changed files with 87 additions and 73 deletions

View File

@@ -342,8 +342,6 @@ parseMod : Parser Module
parseMod = do
keyword "module"
name <- uident
-- probably should be manySame, and we want to start with col -1
-- if we enforce blocks indent more than parent
decls <- startBlock $ manySame $ parseDecl
pure $ MkModule name decls

View File

@@ -107,7 +107,7 @@ processDecl (DCheck fc tm ty) = do
putStrLn "norm \{pprint [] norm}"
putStrLn "NF "
processDecl (DImport fc str) = throwError $ E fc "import not implemented"
processDecl (DImport fc str) = pure ()
processDecl (Data fc nm ty cons) = do
ctx <- get