byte reader

A minimal byte-by-byte reader for parsing input.

build check status of byte_reader test status of byte_reader

Usage

```rust use byte_reader::Reader;

fn main() { // Get a &[u8] or Vec<u8> input from // a File, standard input, or something let sampleinput = "Hello, bytereader!".as_bytes();

// Create mutable `r`
let mut r = Reader::new(sample_input);

// Use some simple operations
// to parse the input
r.consume("Hello").unwrap();
r.consume(",").unwrap();
r.skip_whitespace();
let name = r.read_snake().unwrap(); // byte_reader
r.consume("!").unwrap();

println!("Greeted to `{name}`.");

} ```