Can (f)lex handle the NULL character?

dcardani@totalint.com (Darrin Cardani)
7 May 1999 01:12:39 -0400

          From comp.compilers

Related articles
Can (f)lex handle the NULL character? dcardani@totalint.com (1999-05-07)
Re: Can (f)lex handle the NULL character? rkrayhawk@aol.com (1999-05-09)
Re: Can (f)lex handle the NULL character? dcardani@totalint.com (1999-05-16)
Re: Can (f)lex handle the NULL character? rkrayhawk@aol.com (1999-05-20)
| List of all articles for this month |

From: dcardani@totalint.com (Darrin Cardani)
Newsgroups: comp.compilers
Date: 7 May 1999 01:12:39 -0400
Organization: Total Integration, Inc.
Keywords: lex, question, comment

I'm working on parsing PDF files. They can contain raster image data, and
as such, can have the NULL character (a 0 byte) in them. Reading this
causes flex to go into an infinite loop saying "NUL or End of Buffer" over
and over. Is there any way to get it to properly pass the NULL Character?
I've tried various patterns such as \x00 and '\0', etc. but none of them
work. Am I missing something, or is it impossible?


Thanks,
Darrin
--
Darrin Cardani
[Hmmn, that oughta work. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.