bug-bison
[Top][All Lists]
Advanced

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

Milind's problem in opening the third file among several files


From: G S Murthy
Subject: Milind's problem in opening the third file among several files
Date: Tue, 24 Sep 2002 16:28:56 +0530

Dear Milind

try using the yyrestart() function everytime before calling the yyparse
function.
No Lex function such as yywrap etc can be called before making a call to
yyparse,
Incase the previous call to yyparse has altered the start conditions for
yyparse,
this yyrestart function would help out.

Otherwise I dont see any problem. Pls revert back and update me on this.

All the Best
Murthy


> -----Original Message-----
> From: address@hidden [mailto:address@hidden Behalf
> Of address@hidden
> Sent: Tuesday, September 24, 2002 4:02 PM
> To: address@hidden
> Subject: Bug-bison digest, Vol 1 #462 - 1 msg
>
>
> Send Bug-bison mailing list submissions to
>       address@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://mail.gnu.org/mailman/listinfo/bug-bison
> or, via email, send a message with subject or body 'help' to
>       address@hidden
>
> You can reach the person managing the list at
>       address@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Bug-bison digest..."
>
>
> Today's Topics:
>
>    1. help required for reading multiple files in bison (milind)
>
> --__--__--
>
> Message: 1
> From: "milind" <address@hidden>
> To: <address@hidden>
> Subject: help required for reading multiple files in bison
> Date: Mon, 23 Sep 2002 23:38:04 -0600
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0005_01C2635A.43514040
> Content-Type: text/plain;
>       charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> sir,
>
> i have to open 1400 files in a folder. one at a time.=20
>
> i used the following
>
> fp=3Dfopen("filename","r");
> yyin=3Dfp;
> ....
> ....
> yyparse();
> fclose(fp)
>
> in a loop. this worked fine till it opened the first 2 files. but when =
> it tried to open  the thir file it gave me an segmentation fault.
> please help me out.
>
>
> milind
>
> ------=_NextPart_000_0005_01C2635A.43514040
> Content-Type: text/html;
>       charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=3DContent-Type content=3D"text/html; =
> charset=3Diso-8859-1">
> <META content=3D"MSHTML 6.00.2719.2200" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2>sir,</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>i have to open 1400 files in a folder. =
> one at a=20
> time. </FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>i used the following</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial =
> size=3D2>fp=3Dfopen("filename","r");</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>yyin=3Dfp;</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>....</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>....</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>yyparse();</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>fclose(fp)</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>in a loop. this worked fine till it =
> opened the=20
> first 2 files. but when it tried to open&nbsp; the thir file it gave me =
> an=20
> segmentation fault.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>please help me out.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>milind</FONT></DIV></BODY></HTML>
>
> ------=_NextPart_000_0005_01C2635A.43514040--
>
>
>
>
> --__--__--
>
> _______________________________________________
> Bug-bison mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-bison
>
>
> End of Bug-bison Digest
>


<PRE>

********************************DISCLAIMER**********************************

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege of Deccanet Designs Ltd.
If you have received this message in error, please notify the originator
immediately. If you are not the intended recipient, you are notified that
you are strictly prohibited from retaining, using, copying, altering or
disclosing the contents of this message.

****************************************************************************
</pre>




reply via email to

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