pub fn elm_space<'a, I>() -> Parser<'a, I, I>
Expand description
Returns a Parser that parses the space (’ ’, ‘\t’).
スペース(’ ’, ‘\t’)を解析するParserを返します。
§Example
use std::iter::FromIterator;
use oni_comb_parser_rs::prelude::*;
let text: &str = " ";
let input = text.chars().collect::<Vec<_>>();
let parser: Parser<char, String> = elm_space().of_many1().map(String::from_iter);
let result: ParseResult<char, String> = parser.parse(&input);
assert!(result.is_success());
assert_eq!(result.success().unwrap(), text);