| 1 | // Copyright (c) 2001-2011 Hartmut Kaiser |
| 2 | // |
| 3 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 4 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 5 | |
| 6 | #if !defined(BOOST_SPIRIT_LEX_IN_STATE_OCT_09_2007_0748PM) |
| 7 | #define BOOST_SPIRIT_LEX_IN_STATE_OCT_09_2007_0748PM |
| 8 | |
| 9 | #if defined(_MSC_VER) |
| 10 | #pragma once |
| 11 | #endif |
| 12 | |
| 13 | #include <boost/proto/traits.hpp> |
| 14 | |
| 15 | /////////////////////////////////////////////////////////////////////////////// |
| 16 | namespace boost { namespace spirit { namespace qi |
| 17 | { |
| 18 | /////////////////////////////////////////////////////////////////////////// |
| 19 | // The following is a helper template allowing to use the in_state()[] as |
| 20 | // a skip parser |
| 21 | /////////////////////////////////////////////////////////////////////////// |
| 22 | template <typename Skipper, typename String = char const*> |
| 23 | struct in_state_skipper |
| 24 | : proto::subscript< |
| 25 | typename proto::terminal< |
| 26 | terminal_ex<tag::in_state, fusion::vector1<String> > |
| 27 | >::type |
| 28 | , Skipper |
| 29 | >::type {}; |
| 30 | }}} |
| 31 | |
| 32 | #endif |
| 33 | |