help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


From: W. L. Estes
Subject: Re: (no subject)
Date: Thu, 28 Jun 2001 08:25:08 -0400

>   I am trying to built a parser which can scan 2 files alternately with flex 
> 2.5.2 and bison 1.25.

You may want to grab the most recent versions of the flex and bison
packages. 2.5.4a and 1.28 respectively.

>   My parser is written to parse a line in a file and return. Parser will set 
> eof1 or eof2 to True if File1 or File2 EOF met. With this, the parser should 
> be reading a line from File1 and a line from File2. However, the parser will 
> always scan File1 since it was the first file assigned to yyin. It seems 
> that the yyin cannot be reassigned to other file pointer. Could somebody 
> help on this? Thanks.

Read the section in the flex manual page on "MULTIPLE INPUT
BUFFERS". It describes the functionality you want.

--Will



reply via email to

[Prev in Thread] Current Thread [Next in Thread]