aboutsummaryrefslogtreecommitdiff
path: root/MoonParser/pegtl/analysis/generic.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'MoonParser/pegtl/analysis/generic.hpp')
-rw-r--r--MoonParser/pegtl/analysis/generic.hpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/MoonParser/pegtl/analysis/generic.hpp b/MoonParser/pegtl/analysis/generic.hpp
deleted file mode 100644
index 27e0ffe..0000000
--- a/MoonParser/pegtl/analysis/generic.hpp
+++ /dev/null
@@ -1,39 +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_ANALYSIS_GENERIC_HPP
5#define TAOCPP_PEGTL_INCLUDE_ANALYSIS_GENERIC_HPP
6
7#include "../config.hpp"
8
9#include "grammar_info.hpp"
10#include "insert_rules.hpp"
11#include "rule_type.hpp"
12
13namespace tao
14{
15 namespace TAOCPP_PEGTL_NAMESPACE
16 {
17 namespace analysis
18 {
19 template< rule_type Type, typename... Rules >
20 struct generic
21 {
22 template< typename Name >
23 static std::string insert( grammar_info& g )
24 {
25 const auto r = g.insert< Name >( Type );
26 if( r.second ) {
27 insert_rules< Rules... >::insert( g, r.first->second );
28 }
29 return r.first->first;
30 }
31 };
32
33 } // namespace analysis
34
35 } // namespace TAOCPP_PEGTL_NAMESPACE
36
37} // namespace tao
38
39#endif