https://github.com/jdonszelmann/parse-helper
Primitives to create parsers
https://github.com/jdonszelmann/parse-helper
Last synced: 3 months ago
JSON representation
Primitives to create parsers
- Host: GitHub
- URL: https://github.com/jdonszelmann/parse-helper
- Owner: jdonszelmann
- Created: 2024-09-05T11:21:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-07T11:38:59.000Z (almost 2 years ago)
- Last Synced: 2025-03-05T22:51:28.710Z (over 1 year ago)
- Language: Rust
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parse Helper
This is a library full of primitives to slice up a string or byte slice.
My own primary use for it is when I'm writing a hand-crafted parser.
These are the primitives that are useful when you're doing that.
Essentially, a [`ParseHelper`](ParseHelper) forms an api for an iterator over a sequence of bytes.
However, this iterator doesn't even implement rust's default [`Iterator`] trait.
Instead, the methods are more nuanced than `next()`, and do more specific things useful when dividing up strings.
## TODO:
* Support for custom tokens instead of either utf-8 characters or bytes