| 26 Dec 11:48

parsing compressed files with flex & bison

Hello,

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 ?

Thanks in advance,

Aïmen.

_______________________________________________
help-flex mailing list
help-flex <at> gnu.org
http://lists.gnu.org/mailman/listinfo/help-flex
Hans Aberg | 28 Dec 13:12

Re: parsing compressed files with flex & bison

On 26 Dec 2006, at 11:48, Aïmen 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  
lexer? The Bison generated parser does not care, as it only reads the  
tokens that the lexer feeds it.

   Hans Aberg

Gmane