Closed bvssvni closed 8 years ago
syntax
has same issue
ParseError
would need to handle utf8 and io errors.
Issue is that CharsError can be any Error, and Error doesn't implement PartialEq. Because of this, and the way the library is built to return a Result<_, (_, ParserError)>
, we wouldn't be able to assert_eq on what the parser returns.
Can we implement PartialEq
for ParseError
?
Not when it contains a CharsError.
One problem is that because the rules can backtrack when they fail, it might require the whole source in memory when parsing.
Won't implement this because of backtracking. Closing.
This will make it easier to use with binary data and files.
parse
syntax