Boost C++ Libraries: Ticket #7822: waveidl sample does not use the IDL lexer, but the default lexer https://svn.boost.org/trac10/ticket/7822 <p> Dear Boost developpers, </p> <p> The waveidl sample from the wave lib does not use the included IDL lexer. Instead it uses the default cpp lexer. This can be easily tested by setting a breakpoint in the scan function in idl_re.cpp. The reason is that it is explicitly set up like this in the lex_iterator constructor. The #if 0 branch below is the original code, the #else branch is modified to use the IDL lexer. </p> <blockquote> <p> template &lt;typename IteratorT&gt; lex_iterator(IteratorT const &amp;first, IteratorT const &amp;last, </p> <blockquote> <p> typename TokenT::position_type const &amp;pos, boost::wave::language_support language) </p> </blockquote> <p> : base_type( </p> <blockquote> <p> functor_data_type( </p> <blockquote> <p> unique_functor_type(), </p> </blockquote> </blockquote> </blockquote> <p> #if 0 </p> <blockquote> <p> cpplexer::lex_input_interface_generator&lt;TokenT&gt; </p> <blockquote> <p> ::new_lexer(first, last, pos, language) </p> </blockquote> </blockquote> <p> #else </p> <blockquote> <p> boost::wave::idllexer::new_lexer_gen&lt; std::string::iterator&gt;::new_lexer( first, last, pos, language ) </p> </blockquote> <p> #endif </p> <blockquote> <p> ) </p> </blockquote> <blockquote> <p> ) </p> </blockquote> <blockquote> <p> {} </p> </blockquote> <p> Now if I do the above modification, the preprocessor stops after the first include file with this warning: </p> <p> "warning: last line of file ends without a newline" </p> <p> Somehow the function which checks if there is a return from an include always returns false. </p> <p> Btw.: What I want to achieve is a preprocessor for Verilog-A, which is a simplified variant of a C preprocessor with ` instaed of #. It should be easy, but I cannot get it to work. </p> <p> Thanks &amp; best regards, </p> <p> Michael </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7822 Trac 1.4.3