pub fn tab<Input>() -> impl Parser<Input, Output = char, PartialState = ()>
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());