MCPcopy Create free account
hub / github.com/cosdata/cosdata / ws_tag

Function ws_tag

org/src/cosql.rs:637–644  ·  view source on GitHub ↗

Helper function to parse keywords with flexible whitespace, including newlines

(t: &'a str)

Source from the content-addressed store, hash-verified

635
636// Helper function to parse keywords with flexible whitespace, including newlines
637fn 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
646pub fn parse_cos_graph_query(input: &str) -> IResult<&str, Vec<CosGraphQuery>> {
647 println!("Starting to parse input:\n{}", input);

Callers 1

parse_cos_graph_queryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected