// Copyright (c) 2013 Andreas Pokorny // // 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 using namespace std; using namespace boost::spirit; template struct test_lexer : boost::spirit::lex::lexer { test_lexer() { this->self = lex::string("just something") [ lex::_end = lex::less(boost::phoenix::val(1)) ] ; } }; int main() { typedef lex::lexertl::token token_type; typedef lex::lexertl::actor_lexer lexer_type; test_lexer lexer; return boost::report_errors(); }