| 318 | } |
| 319 | |
| 320 | common_peg_parser_id common_peg_arena::get_rule(const std::string & name) const { |
| 321 | auto it = rules_.find(name); |
| 322 | if (it == rules_.end()) { |
| 323 | throw std::runtime_error("Rule not found: " + name); |
| 324 | } |
| 325 | return it->second; |
| 326 | } |
| 327 | |
| 328 | struct parser_executor { |
| 329 | const common_peg_arena & arena; |
no test coverage detected