Closed sayanarijit closed 2 years ago
@uttarayan21 only one test is failing. I'll probably need your help here.
Seems like a bug in the parse logic, I wrote most of the logic on a single night so its gotten pretty convoluted. I'm thinking of using nom parsers to rewrite the logic but thats going to take a while since I'm learning how to use that.
~Or maybe use something like this https://docs.rs/ansi-parser ?~
Nevermind, nom seems to be a better choice here.
Yeah I already looked into that crate when making this one but that doesn't handle colors and seems mostly for a live terminal instead of text.
I made it work with some hacky workaround, which I think should be fine, until we learn proper parsing.
Forgot to remove main
. Pushed again.
@uttarayan21 could you have a a look?
Tests with assertions and some hacky workaround for an old bug.