Re: parsing compressed files with flex & bison

Hans Aberg <[email protected]> Thu, 28 Dec 2006 13:12:31 +0100
Newsgroups gmane.comp.lex.flex.general,gmane.comp.parsers.bison.general
Message-ID <[email protected]>
On 26 Dec 2006, at 11:48, A=EFmen Troudi wrote:

> I have to support compressed files in a project with flex & bison,
>
> actually, the project support only ascii files, my question is :
>
> How to manage compressed files (zip,gzip,bzip2,Z) with flex & bison ?
>
> Can I used zlib library with flex & bison ?

What about unpacking them, before feeding them to the Flex generated =20
lexer? The Bison generated parser does not care, as it only reads the =20=

tokens that the lexer feeds it.

   Hans Aberg