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

Function extend_entity_inference

org/src/cosql.rs:519–536  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

517}
518
519fn extend_entity_inference(input: &str) -> IResult<&str, Inference> {
520 map(
521 tuple((
522 ws(tag("extend")),
523 ws(char('$')),
524 ws(identifier),
525 delimited(
526 ws(char('(')),
527 separated_list1(ws(char(',')), attribute_value),
528 ws(char(')')),
529 ),
530 )),
531 |(_, _, variable, attributes)| Inference::ExtendEntity {
532 variable: variable.to_string(),
533 attributes,
534 },
535 )(input)
536}
537
538fn rule(input: &str) -> IResult<&str, Rule> {
539 println!("Starting to parse rule {}", input);

Callers

nothing calls this directly

Calls 1

wsFunction · 0.70

Tested by

no test coverage detected