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

Method chars

subprojects/llama.cpp/common/peg-parser.cpp:1011–1014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1009}
1010
1011common_peg_parser common_peg_parser_builder::chars(const std::string & classes, int min, int max) {
1012 auto [ranges, negated] = parse_char_classes(classes);
1013 return wrap(arena_.add_parser(common_peg_chars_parser{classes, ranges, negated, min, max}));
1014}
1015
1016common_peg_parser common_peg_parser_builder::schema(const common_peg_parser & p, const std::string & name, const nlohmann::ordered_json & schema, bool raw) {
1017 return wrap(arena_.add_parser(common_peg_schema_parser{p.id(), name, std::make_shared<nlohmann::ordered_json>(schema), raw}));

Callers 7

test_unicodeFunction · 0.80
test_basicFunction · 0.80
test_gbnf_generationFunction · 0.80
test_json_parserFunction · 0.80
parse_ini_from_fileFunction · 0.80
visitVariableMethod · 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