MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / chars

Method chars

common/peg-parser.cpp:1221–1224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1219}
1220
1221common_peg_parser common_peg_parser_builder::chars(const std::string & classes, int min, int max) {
1222 auto [ranges, negated] = parse_char_classes(classes);
1223 return wrap(arena_.add_parser(common_peg_chars_parser{classes, ranges, negated, min, max}));
1224}
1225
1226common_peg_parser common_peg_parser_builder::schema(const common_peg_parser & p, const std::string & name, const nlohmann::ordered_json & schema, bool raw) {
1227 return wrap(arena_.add_parser(common_peg_schema_parser{p.id(), name, std::make_shared<nlohmann::ordered_json>(schema), raw}));

Callers 8

test_unicodeFunction · 0.80
test_basicFunction · 0.80
test_gbnf_generationFunction · 0.80
test_json_parserFunction · 0.80
parse_ini_from_fileFunction · 0.80

Calls 2

parse_char_classesFunction · 0.85
add_parserMethod · 0.80

Tested by 4

test_unicodeFunction · 0.64
test_basicFunction · 0.64
test_gbnf_generationFunction · 0.64
test_json_parserFunction · 0.64