MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / parse_string_func_item

Function parse_string_func_item

src/cypher/cypher.c:1656–1666  ·  view source on GitHub ↗

Parse string function call: toLower(var.prop) */

Source from the content-addressed store, hash-verified

1654
1655/* Parse string function call: toLower(var.prop) */
1656static int parse_string_func_item(parser_t *p, cbm_return_item_t *item) {
1657 cbm_token_type_t ft = peek(p)->type;
1658 advance(p);
1659 expect(p, TOK_LPAREN);
1660 if (parse_var_dot_prop(p, item) < 0) {
1661 return CBM_NOT_FOUND;
1662 }
1663 expect(p, TOK_RPAREN);
1664 item->func = heap_strdup(str_func_name(ft));
1665 return 0;
1666}
1667
1668static int parse_return_item(parser_t *p, cbm_return_item_t *item) {
1669 memset(item, 0, sizeof(*item));

Callers 1

parse_return_itemFunction · 0.85

Calls 6

peekFunction · 0.85
expectFunction · 0.85
parse_var_dot_propFunction · 0.85
str_func_nameFunction · 0.85
advanceFunction · 0.70
heap_strdupFunction · 0.70

Tested by

no test coverage detected