pub fn tab<I>() -> Tab<I>where
I: Stream<Item = char>,
I::Error: ParseError<I::Item, I::Range, I::Position>,
Expand description
Parses a tab character ('\t'
).
use combine::Parser;
use combine::parser::char::tab;
assert_eq!(tab().parse("\t"), Ok(('\t', "")));
assert!(tab().parse(" ").is_err());