LeopoldArkham / Molten

[WIP] Molten - Style-preserving TOML parser.
Apache License 2.0
40 stars 8 forks source link

Add error-chain. #13

Closed ehuss closed 7 years ago

ehuss commented 7 years ago

Here's a preview of what it might look like using error-chain.

It currently doesn't compute the line/column for the error message. I'd like to take a crack at showing a non-copying approach that would make it easier to do this. I think I'll do it in a separate PR.

There are no tests to assert invalid input. I could start adding these if you decide to go with this.

LeopoldArkham commented 7 years ago

Great, I think we can build on this. I'll merge and open a new issue for reporting positions.