#include #include #include #include #include using namespace std; using namespace boost::spirit; template struct MyLexer : boost::spirit::lex::lexer { MyLexer() { token = L"Yay winning!"; this->self = token; } lex::token_def token; }; int main(int argc, char* argv[]) { typedef lex::lexertl::token token_type; typedef lex::lexertl::lexer lexer_type; MyLexer lexer; ofstream outputStream("test.hpp"); return lex::lexertl::generate_static_dfa(lexer, outputStream, "test") ? 0 : -1; }