Closed samisagit closed 1 year ago
It might be worth updating the alternative
parser to check differentiate errors, e.g. if til
returns a Left "hit excluded char"
this is acceptable, but Left "reached end of input"
this is a failed parse.
It might be worth updating the
alternative
parser to check differentiate errors, e.g. iftil
returns aLeft "hit excluded char"
this is acceptable, butLeft "reached end of input"
this is a failed parse.
Ended up just checking if the char existed up front. Possibly inefficient, but works for now.
The
til
parser will read until the end of the input and return successfully if no match is found.