| 1219 | } |
| 1220 | |
| 1221 | common_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 | |
| 1226 | common_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})); |