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