MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / parse_name

Function parse_name

common/grammar-parser.cpp:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 static const char * parse_name(const char * src) {
92 const char * pos = src;
93 while (is_word_char(*pos)) {
94 pos++;
95 }
96 if (pos == src) {
97 throw std::runtime_error(std::string("expecting name at ") + src);
98 }
99 return pos;
100 }
101
102 static std::pair<uint32_t, const char *> parse_char(const char * src) {
103 if (*src == '\\') {

Callers 2

parse_sequenceFunction · 0.70
parse_ruleFunction · 0.70

Calls 2

is_word_charFunction · 0.70
stringFunction · 0.50

Tested by

no test coverage detected