aboutsummaryrefslogtreecommitdiff
path: root/MoonParser/pegtl/internal/trivial.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'MoonParser/pegtl/internal/trivial.hpp')
-rw-r--r--MoonParser/pegtl/internal/trivial.hpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/MoonParser/pegtl/internal/trivial.hpp b/MoonParser/pegtl/internal/trivial.hpp
deleted file mode 100644
index 3416175..0000000
--- a/MoonParser/pegtl/internal/trivial.hpp
+++ /dev/null
@@ -1,42 +0,0 @@
1// Copyright (c) 2014-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_TRIVIAL_HPP
5#define TAOCPP_PEGTL_INCLUDE_INTERNAL_TRIVIAL_HPP
6
7#include "../config.hpp"
8
9#include "skip_control.hpp"
10
11#include "../analysis/counted.hpp"
12
13namespace tao
14{
15 namespace TAOCPP_PEGTL_NAMESPACE
16 {
17 namespace internal
18 {
19 template< bool Result >
20 struct trivial
21 {
22 using analyze_t = analysis::counted< analysis::rule_type::ANY, unsigned( !Result ) >;
23
24 template< typename Input >
25 static bool match( Input& ) noexcept
26 {
27 return Result;
28 }
29 };
30
31 template< bool Result >
32 struct skip_control< trivial< Result > > : std::true_type
33 {
34 };
35
36 } // namespace internal
37
38 } // namespace TAOCPP_PEGTL_NAMESPACE
39
40} // namespace tao
41
42#endif