/src/Fast-DDS/thirdparty/taocpp-pegtl/pegtl/internal/plus.hpp
Line | Count | Source (jump to first uncovered line) |
1 | | // Copyright (c) 2014-2020 Dr. Colin Hirsch and Daniel Frey |
2 | | // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ |
3 | | |
4 | | #ifndef TAO_PEGTL_INTERNAL_PLUS_HPP |
5 | | #define TAO_PEGTL_INTERNAL_PLUS_HPP |
6 | | |
7 | | #include <type_traits> |
8 | | |
9 | | #include "../config.hpp" |
10 | | |
11 | | #include "opt.hpp" |
12 | | #include "seq.hpp" |
13 | | #include "skip_control.hpp" |
14 | | #include "star.hpp" |
15 | | |
16 | | #include "../apply_mode.hpp" |
17 | | #include "../rewind_mode.hpp" |
18 | | |
19 | | #include "../analysis/generic.hpp" |
20 | | |
21 | | namespace tao |
22 | | { |
23 | | namespace TAO_PEGTL_NAMESPACE |
24 | | { |
25 | | namespace internal |
26 | | { |
27 | | // While plus<> could easily be implemented with |
28 | | // seq< Rule, Rules ..., star< Rule, Rules ... > > we |
29 | | // provide an explicit implementation to optimise away |
30 | | // the otherwise created input mark. |
31 | | |
32 | | template< typename Rule, typename... Rules > |
33 | | struct plus |
34 | | : plus< seq< Rule, Rules... > > |
35 | | { |
36 | | }; |
37 | | |
38 | | template< typename Rule > |
39 | | struct plus< Rule > |
40 | | { |
41 | | using analyze_t = analysis::generic< analysis::rule_type::seq, Rule, opt< plus > >; |
42 | | |
43 | | template< apply_mode A, |
44 | | rewind_mode M, |
45 | | template< typename... > |
46 | | class Action, |
47 | | template< typename... > |
48 | | class Control, |
49 | | typename Input, |
50 | | typename... States > |
51 | | static bool match( Input& in, States&&... st ) |
52 | 0 | { |
53 | 0 | return Control< Rule >::template match< A, M, Action, Control >( in, st... ) && Control< star< Rule > >::template match< A, M, Action, Control >( in, st... ); |
54 | 0 | } Unexecuted instantiation: bool tao::pegtl::internal::plus<tao::pegtl::ascii::digit>::match<(tao::pegtl::apply_mode)1, (tao::pegtl::rewind_mode)0, tao::pegtl::nothing, tao::pegtl::parse_tree::internal::make_control<eprosima::fastdds::dds::DDSSQLFilter::parser::ParseNode, eprosima::fastdds::dds::DDSSQLFilter::parser::selector, tao::pegtl::normal>::type, tao::pegtl::memory_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, eprosima::fastdds::dds::DDSSQLFilter::parser::CurrentIdentifierState&, tao::pegtl::parse_tree::internal::state<eprosima::fastdds::dds::DDSSQLFilter::parser::ParseNode>&>(tao::pegtl::memory_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >&, eprosima::fastdds::dds::DDSSQLFilter::parser::CurrentIdentifierState&, tao::pegtl::parse_tree::internal::state<eprosima::fastdds::dds::DDSSQLFilter::parser::ParseNode>&) Unexecuted instantiation: bool tao::pegtl::internal::plus<tao::pegtl::ascii::xdigit>::match<(tao::pegtl::apply_mode)1, (tao::pegtl::rewind_mode)0, tao::pegtl::nothing, tao::pegtl::parse_tree::internal::make_control<eprosima::fastdds::dds::DDSSQLFilter::parser::ParseNode, eprosima::fastdds::dds::DDSSQLFilter::parser::selector, tao::pegtl::normal>::type, tao::pegtl::memory_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, eprosima::fastdds::dds::DDSSQLFilter::parser::CurrentIdentifierState&, tao::pegtl::parse_tree::internal::state<eprosima::fastdds::dds::DDSSQLFilter::parser::ParseNode>&>(tao::pegtl::memory_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >&, eprosima::fastdds::dds::DDSSQLFilter::parser::CurrentIdentifierState&, tao::pegtl::parse_tree::internal::state<eprosima::fastdds::dds::DDSSQLFilter::parser::ParseNode>&) |
55 | | }; |
56 | | |
57 | | template< typename Rule, typename... Rules > |
58 | | struct skip_control< plus< Rule, Rules... > > : std::true_type |
59 | | { |
60 | | }; |
61 | | |
62 | | } // namespace internal |
63 | | |
64 | | } // namespace TAO_PEGTL_NAMESPACE |
65 | | |
66 | | } // namespace tao |
67 | | |
68 | | #endif |