#Gobble
A not too generic parser for strings in Rust
This parser exists take some of the generics and macros pain out of parsing.
A parser is anything that implements the Parser Trait
pub type ParseRes<'a, V> = ;
This is automatically implemented for any function with the same signature.
LCChars is a wrapper around the "Chars" iterator which tracks line number and column number. This is to help return the correct errors.
the main.rs file is an example parser.
Mostly you will be combining functions with then()
, ig_then()
, ``then_ig(), and
or()```
Example:
use *;
let ident = ;
let fsig = ident
.then_ig
.then
.then_ig;
let = fsig.parse_s.unwrap;
assert_eq!;
assert_eq!;
assert!;