MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / parse_name

Function parse_name

subprojects/llama.cpp/src/llama-grammar.cpp:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139static const char * parse_name(const char * src) {
140 const char * pos = src;
141 while (is_word_char(*pos)) {
142 pos++;
143 }
144 if (pos == src) {
145 throw std::runtime_error(std::string("expecting name at ") + src);
146 }
147 return pos;
148}
149
150static const char * parse_int(const char * src) {
151 const char * pos = src;

Callers 2

parse_sequenceMethod · 0.85
parse_ruleMethod · 0.85

Calls 2

is_word_charFunction · 0.85
stringClass · 0.85

Tested by

no test coverage detected