2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00
Files
spirit/test/lex/regression_less_8563.cpp
Nikita Kniazev 4ea7e3a7b7 Deprecate Phoenix transition headers
There is no purpose in these transition headers, Phoenix V2 was removed 8 years ago.
2021-09-28 22:24:57 +03:00

39 lines
918 B
C++

// 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 <boost/spirit/include/lex_lexertl.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/phoenix/core.hpp>
#include <boost/phoenix/operator.hpp>
#include <fstream>
using namespace std;
using namespace boost::spirit;
template <typename BaseLexer>
struct test_lexer : boost::spirit::lex::lexer<BaseLexer>
{
test_lexer()
{
this->self = lex::string("just something")
[
lex::_end = lex::less(boost::phoenix::val(1))
]
;
}
};
int main()
{
typedef lex::lexertl::token<char const*> token_type;
typedef lex::lexertl::actor_lexer<token_type> lexer_type;
test_lexer<lexer_type> lexer;
return boost::report_errors();
}