Parse until eof
This commit is contained in:
parent
8a81cd9e77
commit
659f1a9d33
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ pDefs = many pDef
|
|||
parseHelper :: Parser a -> FilePath -> T.Text -> Either T.Text a
|
||||
parseHelper p path input
|
||||
= first (T.pack . errorBundlePretty)
|
||||
$ parse (space *> p) path input
|
||||
$ parse (space *> p <* eof) path input
|
||||
|
||||
parseTerms :: FilePath -> T.Text -> Either T.Text [Term T.Text]
|
||||
parseTerms = parseHelper pTerms
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue