Helper function to parse keywords with flexible whitespace, including newlines
(t: &'a str)
| 635 | |
| 636 | // Helper function to parse keywords with flexible whitespace, including newlines |
| 637 | fn ws_tag<'a>(t: &'a str) -> impl Fn(&'a str) -> IResult<&'a str, &'a str> { |
| 638 | move |input| { |
| 639 | println!("Attempting to match tag '{}' in: {:?}", t, input); |
| 640 | let result = delimited(multispace0, tag(t), multispace0)(input); |
| 641 | println!("Result of matching '{}': {:?}", t, result); |
| 642 | result |
| 643 | } |
| 644 | } |
| 645 | |
| 646 | pub fn parse_cos_graph_query(input: &str) -> IResult<&str, Vec<CosGraphQuery>> { |
| 647 | println!("Starting to parse input:\n{}", input); |
no outgoing calls
no test coverage detected