Newt in Newt compiles (but does not run)
This commit is contained in:
@@ -654,14 +654,14 @@ parseMod = do
|
||||
pure $ MkModule name imports decls
|
||||
|
||||
|
||||
data ReplCmd =
|
||||
Def Decl
|
||||
| Norm Raw -- or just name?
|
||||
| Check Raw
|
||||
-- data ReplCmd =
|
||||
-- Def Decl
|
||||
-- | Norm Raw -- or just name?
|
||||
-- | Check Raw
|
||||
|
||||
|
||||
-- Eventually I'd like immediate actions in the file, like lean, but I
|
||||
-- also want to REPL to work and we can do that first.
|
||||
parseRepl : Parser ReplCmd
|
||||
parseRepl = Def <$> parseDecl <|> Norm <$ keyword "#nf" <*> typeExpr
|
||||
<|> Check <$ keyword "#check" <*> typeExpr
|
||||
-- -- Eventually I'd like immediate actions in the file, like lean, but I
|
||||
-- -- also want to REPL to work and we can do that first.
|
||||
-- parseRepl : Parser ReplCmd
|
||||
-- parseRepl = Def <$> parseDecl <|> Norm <$ keyword "#nf" <*> typeExpr
|
||||
-- <|> Check <$ keyword "#check" <*> typeExpr
|
||||
|
||||
Reference in New Issue
Block a user