Fix critical list evaluation bug and REPL updates

This commit is contained in:
James Eversole
2025-01-02 19:08:14 -06:00
parent 76487b15f9
commit 8c33e5ce66
7 changed files with 58 additions and 64 deletions

View File

@ -15,7 +15,7 @@ evaluateFileResult filePath = do
let finalEnv = evalTricu Map.empty asts
case Map.lookup "__result" finalEnv of
Just finalResult -> return finalResult
Nothing -> error "No result found in final environment"
Nothing -> errorWithoutStackTrace "No expressions to evaluate found"
evaluateFile :: FilePath -> IO Env
evaluateFile filePath = do