| 1009 | } |
| 1010 | |
| 1011 | common_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 | |
| 1016 | common_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})); |