Boost logo

Boost :

From: Leo Davis (ldavis_at_[hidden])
Date: 2007-03-23 20:46:45


Leo Davis wrote:
> Hello,
>
> 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.

Leo




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk