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

Method add_rule

common/peg-parser.cpp:316–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void common_peg_arena::add_rule(const std::string & name, common_peg_parser_id id) {
317 rules_[name] = id;
318}
319
320common_peg_parser_id common_peg_arena::get_rule(const std::string & name) const {
321 auto it = rules_.find(name);

Callers 2

ruleMethod · 0.45
build_grammarMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected