On Mon, 13 Oct 2008, Jim Michaels wrote:
> fgets & fgetc stops when it reaches a ^z character (eof character) ^d on > unix. the batch mode flex does not I think do this, because it uses fread. > however, it might if you open the file in text mode instead of binary. > If you happen to want to lex a ^z or ^d this can be a problem! > > will I need to redefine YY_INPUT in the case of a C++ lexer and parser? > The C++ lexer uses <iostream> (hence fstream) rather than <stdio.h>. this is > what I gathered from bison & flex 2.1 generated code. > I don't know anything about the C++ lexer. I suggest writing a minimal scanner-parser pair and checking to see what happens. Laurence _______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison