Closed rgrinberg closed 3 years ago
Indeed :facepalm:
The more I think about it, the more I'm thinking we should introduce an API similar to the parsexp one where we feed characters to the parser. At least, it becomes up to the caller to deal with IO errors and everything becomes more explicit.
Fixed by #9
Consider the
End_of_file
catch clause from this snippet:As far as I can tell,
End_of_file
can't be raised becauseread_{char,string}
catch it. @jeremiedimino what was the intention of this?