m4rw3r / chomp

A fast monadic-style parser combinator designed to work on stable Rust.
Apache License 2.0
243 stars 19 forks source link

Proper parsers tests and examples for using `&str` as a parse source #25

Open m4rw3r opened 8 years ago

m4rw3r commented 8 years ago

Problem

Currently all examples and tests are using byte-slices since that is most likely the most common source-input of a parser. But there are situations where an already valid UTF-8 string might need parsing, this requires some specialized parsers (the combinators should work fine), associated tests as well as examples on how to parse a &str.