Muncher
About
An easy to use string muncher that allows easy tokenization when writing a parser. Muncher has peek
and fork capabilities so you can look ahead and behind when needed. If lexing braces Muncher
has a built in brace matching stack accessed from Muncher::brace_stack()
.
Use
[]
= "0.6"
Examples
use Muncher;
let input = "hello\nworld";
let mut m = new;
let hello = m.eat_until.;
assert_eq!;
assert!;