Tests and better default REPL behavior

This commit is contained in:
2024-12-27 14:10:13 -06:00
committed by James Eversole
parent c3c6646cb2
commit 9c1c916fc9
5 changed files with 106 additions and 92 deletions

View File

@ -32,7 +32,6 @@ parseSapling input =
in map parseSingle nonEmptyLines
parseSingle :: String -> SaplingAST
parseSingle "" = error "Empty input provided to parseSingle"
parseSingle input = case runParser parseExpression "" (lexSapling input) of
Left err -> error $ handleParseError err
Right ast -> ast