#ifndef BOOST_PARSER_TEST_COMMON_H #define BOOST_PARSER_TEST_COMMON_H // Copyright Abel Sinkovics (abel@sinkovics.hu) 2010. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include #include #include #include #include #include #include #include #include #include typedef boost::mpl::list_c str_; typedef boost::mpl::list_c str_0; typedef boost::mpl::list_c str_1; typedef boost::mpl::list_c str_1983; typedef boost::mpl::list_c str_a; typedef boost::mpl::list_c str_ab; typedef boost::mpl::list_c str_aaaab; typedef boost::mpl::list_c str_ac; typedef boost::mpl::list_c str_b; typedef boost::mpl::list_c str_ba; typedef boost::mpl::list_c str_baaaa; typedef boost::mpl::list_c str_c; typedef boost::mpl::list_c str_ca; typedef boost::mpl::list_c str_h; typedef boost::mpl::list_c str_e; typedef boost::mpl::list_c str_l; typedef boost::mpl::list_c str_bello; typedef boost::mpl::list_c str_hello; typedef boost::mpl::list_c str__ello; typedef boost::mpl::list_c chars0; typedef boost::mpl::list_c chars1; typedef boost::mpl::list_c chars2; typedef boost::mpl::list_c chars3; typedef boost::mpl::list_c chars4; typedef boost::mpl::list_c chars5; typedef boost::mpl::char_<'0'> char_0; typedef boost::mpl::char_<'1'> char_1; typedef boost::mpl::char_<'7'> char_7; typedef boost::mpl::char_<'9'> char_9; typedef boost::mpl::char_<'a'> char_a; typedef boost::mpl::char_<'b'> char_b; typedef boost::mpl::char_<'e'> char_e; typedef boost::mpl::char_<'h'> char_h; typedef boost::mpl::char_<'k'> char_k; typedef boost::mpl::char_<'K'> char_K; typedef boost::mpl::char_<'l'> char_l; typedef boost::mpl::char_<'o'> char_o; typedef boost::mpl::char_<'x'> char_x; typedef boost::mpl::char_<' '> char_space; typedef boost::mpl::char_<'\t'> char_tab; typedef boost::mpl::char_<'\n'> char_new_line; typedef boost::mpl::char_<'\r'> char_cret; typedef boost::mpl::int_<0> int0; typedef boost::mpl::int_<1> int1; typedef boost::mpl::int_<2> int2; typedef boost::mpl::int_<3> int3; typedef boost::mpl::int_<9> int9; typedef boost::mpl::int_<10> int10; typedef boost::mpl::int_<11> int11; typedef boost::mpl::int_<12> int12; typedef boost::mpl::int_<13> int13; typedef boost::mpl::int_<14> int14; typedef boost::mpl::int_<28> int28; typedef boost::metaparse::lit lit_e; typedef boost::metaparse::lit lit_h; typedef boost::metaparse::lit lit_l; typedef boost::metaparse::lit lit_x; typedef boost::metaparse::lit_c<'e'> lit_c_e; typedef boost::metaparse::lit_c<'h'> lit_c_h; typedef boost::mpl::list< > empty_list; typedef boost::mpl::at, int11> can_not_be_instantiated; struct test_failure { typedef test_failure type; static std::string get_value() { return "fail"; } }; struct equal_sequences { typedef equal_sequences type; template struct apply : boost::mpl::equal {}; }; #endif