Sha256: 7100c2e9c657a36fc16a237ce10da61e2577bc2833381fed68d2d610fc429894

Contents?: true

Size: 1.04 KB

Versions: 34

Compression:

Stored size: 1.04 KB

Contents

// Copyright (c) 2019-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/

#ifndef TAO_JSON_PEGTL_CONTRIB_JSON_POINTER_HPP
#define TAO_JSON_PEGTL_CONTRIB_JSON_POINTER_HPP

#include "../ascii.hpp"
#include "../config.hpp"
#include "../rules.hpp"
#include "../utf8.hpp"

namespace TAO_JSON_PEGTL_NAMESPACE::json_pointer
{
   // JSON pointer grammar according to RFC 6901

   // clang-format off
   struct unescaped : utf8::ranges< 0x0, 0x2E, 0x30, 0x7D, 0x7F, 0x10FFFF > {};
   struct escaped : seq< one< '~' >, one< '0', '1' > > {};

   struct reference_token : star< sor< unescaped, escaped > > {};
   struct json_pointer : star< one< '/' >, reference_token > {};
   // clang-format on

   // relative JSON pointer, see ...

   // clang-format off
   struct non_negative_integer : sor< one< '0' >, plus< digit > > {};
   struct relative_json_pointer : seq< non_negative_integer, sor< one< '#' >, json_pointer > > {};
   // clang-format on

}  // namespace TAO_JSON_PEGTL_NAMESPACE::json_pointer

#endif

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
couchbase-3.2.0-universal-darwin-20 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.2.0 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.1.1 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.1.1-universal-darwin-20 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.1.0 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.3 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.3-universal-darwin-20 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.2 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.1-universal-darwin-19 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.1 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.0-universal-darwin-19 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.0 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.0.beta.1-universal-darwin-19 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.0.beta.1 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.0.alpha.5-x86_64-linux ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.0.alpha.5-universal-darwin-19 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.0.alpha.5-x86_64-darwin-19 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.0.alpha.5 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.0.alpha.4-x86_64-linux ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp