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

Method add_rule

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

Source from the content-addressed store, hash-verified

267}
268
269void common_peg_arena::add_rule(const std::string & name, common_peg_parser_id id) {
270 rules_[name] = id;
271}
272
273common_peg_parser_id common_peg_arena::get_rule(const std::string & name) const {
274 auto it = rules_.find(name);

Calls

no outgoing calls

Tested by

no test coverage detected