A tiny library for parsing simple expressions.
```Rust use tinyparse::common; use tinyparse::{Span, Parse};
let helloorint = common::literal("hello!").or(common::int()); // The parse functions return a result containing what's left of "10" and the actual result. asserteq!(helloor_int.parse(Span::new("10")), Ok((Span::empty(), 10))); ```
Some expressions need lookahead capability or something similar to be parsed. Unfortunately; this library does not include this.If you want lookahead capability, consider implementing your own parser using the Parse
trait.