
Leo Davis wrote:
I pulled down a copy of boost 1.34 from CVS today and built the lexed_tokens sample. It seemed to work well, except for running it on an empty file:
$./lexed_tokens bar.c bar.c(1): error: generic lexing error: invalid character '\000' in input stream $
This used to work in boost 1.33.1:
$ ./lexed_tokens bar.c EOF (#402) at bar.c ( 1/ 1): >< $
Leo
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
I was able to get the behavior I wanted by applying the following patch in libs/wave/src/cpplexer/re2clex. I don't know if this is a good idea or not. I wasn't able to get something that looked correct out of re2c, so I don't have those patched.
I'm not able to reproduce this problem in the CVS::HEAD version. I get you expected output as you mention above. Have you tried this with the CVS version? Regards Hartmut