Boost C++ Libraries: Ticket #5554: wave slex parser eof without eol skips the last line https://svn.boost.org/trac10/ticket/5554 <p> Running cpp_tokens on the attached file produces empty output. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5554 Trac 1.4.3 József Mihalicza <jmihalicza@…> Fri, 20 May 2011 00:43:18 GMT attachment set https://svn.boost.org/trac10/ticket/5554 https://svn.boost.org/trac10/ticket/5554 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">sx3.c</span> </li> </ul> Ticket József Mihalicza <jmihalicza@…> Fri, 20 May 2011 00:43:43 GMT attachment set https://svn.boost.org/trac10/ticket/5554 https://svn.boost.org/trac10/ticket/5554 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">sx3.cpp_tokens.txt</span> </li> </ul> Ticket Hartmut Kaiser Sat, 21 May 2011 19:45:59 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5554#comment:1 https://svn.boost.org/trac10/ticket/5554#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> Sorry, but I'm not able to reproduce this problem. The output I get is: </p> <pre class="wiki">matched INT (#334) at test.cpp ( 1/ 1): &gt;int&lt; matched SPACE (#392) at test.cpp ( 1/ 4): &gt; &lt; matched IDENTIFIER (#380) at test.cpp ( 1/ 5): &gt;f&lt; matched LEFTPAREN (#277) at test.cpp ( 1/ 6): &gt;(&lt; matched RIGHTPAREN (#294) at test.cpp ( 1/ 7): &gt;)&lt; matched SPACE (#392) at test.cpp ( 1/ 8): &gt; &lt; matched LEFTBRACE (#274) at test.cpp ( 1/ 9): &gt;{&lt; matched SPACE (#392) at test.cpp ( 1/10): &gt; &lt; matched RETURN (#345) at test.cpp ( 1/11): &gt;return&lt; matched SPACE (#392) at test.cpp ( 1/17): &gt; &lt; matched IDENTIFIER (#380) at test.cpp ( 1/18): &gt;z&lt; matched QUESTION_MARK (#292) at test.cpp ( 1/19): &gt;?&lt; matched PP_NUMBER (#403) at test.cpp ( 1/20): &gt;0&lt; matched COLON (#265) at test.cpp ( 1/21): &gt;:&lt; matched PP_NUMBER (#403) at test.cpp ( 1/22): &gt;1&lt; matched SEMICOLON (#297) at test.cpp ( 1/23): &gt;;&lt; matched SPACE (#392) at test.cpp ( 1/24): &gt; &lt; matched RIGHTBRACE (#293) at test.cpp ( 1/25): &gt;}&lt; matched NEWLINE (#394) at test.cpp ( 1/26): &gt;\n&lt; matched EOF (#401) at test.cpp ( 2/ 1): &gt;&lt; </pre> Ticket Hartmut Kaiser Sat, 21 May 2011 20:26:06 GMT <link>https://svn.boost.org/trac10/ticket/5554#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5554#comment:2</guid> <description> <p> After some tinkering I realized that the problem you reported manifests itself only for files which are not terminated with a newline character. That has been properly fixed now in SVN (rev. <a class="changeset" href="https://svn.boost.org/trac10/changeset/72062" title="Wave: Fixing example to behave properly if input is not terminated ...">[72062]</a>). </p> </description> <category>Ticket</category> </item> </channel> </rss>