Chris@16: // Copyright (c) 2001-2011 Hartmut Kaiser Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: #if !defined(BOOST_SPIRIT_LEX_IN_STATE_OCT_09_2007_0748PM) Chris@16: #define BOOST_SPIRIT_LEX_IN_STATE_OCT_09_2007_0748PM Chris@16: Chris@16: #if defined(_MSC_VER) Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: #include Chris@16: Chris@16: /////////////////////////////////////////////////////////////////////////////// Chris@16: namespace boost { namespace spirit { namespace qi Chris@16: { Chris@16: /////////////////////////////////////////////////////////////////////////// Chris@16: // The following is a helper template allowing to use the in_state()[] as Chris@16: // a skip parser Chris@16: /////////////////////////////////////////////////////////////////////////// Chris@16: template Chris@16: struct in_state_skipper Chris@16: : proto::subscript< Chris@16: typename proto::terminal< Chris@16: terminal_ex > Chris@16: >::type Chris@16: , Skipper Chris@16: >::type {}; Chris@16: }}} Chris@16: Chris@16: #endif