aboutsummaryrefslogtreecommitdiff
path: root/MoonParser/pegtl/internal/require.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'MoonParser/pegtl/internal/require.hpp')
-rw-r--r--MoonParser/pegtl/internal/require.hpp52
1 files changed, 0 insertions, 52 deletions
diff --git a/MoonParser/pegtl/internal/require.hpp b/MoonParser/pegtl/internal/require.hpp
deleted file mode 100644
index 0506356..0000000
--- a/MoonParser/pegtl/internal/require.hpp
+++ /dev/null
@@ -1,52 +0,0 @@
1// Copyright (c) 2016-2017 Dr. Colin Hirsch and Daniel Frey
2// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
3
4#ifndef TAOCPP_PEGTL_INCLUDE_INTERNAL_REQUIRE_HPP
5#define TAOCPP_PEGTL_INCLUDE_INTERNAL_REQUIRE_HPP
6
7#include "../config.hpp"
8
9#include "skip_control.hpp"
10#include "trivial.hpp"
11
12#include "../analysis/generic.hpp"
13
14namespace tao
15{
16 namespace TAOCPP_PEGTL_NAMESPACE
17 {
18 namespace internal
19 {
20 template< unsigned Amount >
21 struct require;
22
23 template<>
24 struct require< 0 >
25 : trivial< true >
26 {
27 };
28
29 template< unsigned Amount >
30 struct require
31 {
32 using analyze_t = analysis::generic< analysis::rule_type::OPT >;
33
34 template< typename Input >
35 static bool match( Input& in )
36 {
37 return in.size( Amount ) >= Amount;
38 }
39 };
40
41 template< unsigned Amount >
42 struct skip_control< require< Amount > > : std::true_type
43 {
44 };
45
46 } // namespace internal
47
48 } // namespace TAOCPP_PEGTL_NAMESPACE
49
50} // namespace tao
51
52#endif