Bracket Parse
A Utility for parsing Bracketed lists and sets of strings.
It is now deprecated, as Gobble does everything it does better. This was one of my first Rust projects and it shows.
It is a relatively lazy way of parsing items from a bracketed string,
"hello(peter,dave)" is easy for it to handle, as are nested brackets.
The above will result in something like
Branch[Leaf("hello"),Branch[Leaf("peter"),Leaf("dave")]]
This is not intended super extensible right now, though contributions are welcome.
The list can also be constructed relatively simply by using chained builder type methods
use ;
use ;
use FromStr;
let str1 = from_str.unwrap;
//Standard Build method
let basic1 = Branch;
//Chaining Build method
let chain1 = br.sib_lf
.sib;
assert_eq!;
assert_eq!;
It can also handle string input with escapes. Quotes are removed and the string item is considered a single Leaf value;
use ;
use FromStr;
let bk = from_str.unwrap;
let chn = br.sib_lf.sib_lf.sib_lf;
assert_eq!;