Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error human-readable messages maybe should translate u8s to ascii #56

Open
mcclure opened this issue Dec 15, 2022 · 1 comment
Open

Comments

@mcclure
Copy link
Contributor

mcclure commented Dec 15, 2022

The recommended way to use pom (per your examples) is parsing 'u8's. If pom fails to match, it gives messages like:
Err(Mismatch { message: "expect: 120, found: 101", position: 1 })
Here "120" is ascii "x" and "101" is ascii "e".
Since usually pom will be interpreting text, it would make sense to convert these values to characters if they happen to match printable ASCII.

Did I miss a feature that can do this already?

@J-F-Liu
Copy link
Owner

J-F-Liu commented Dec 16, 2022

This is not implemented yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants