LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 07-17-2005, 01:30 PM   #1
zaman
Member
 
Registered: Jul 2003
Location: new delhi,india
Distribution: slackware 9.0
Posts: 54

Rep: Reputation: 15
bison / flex


i was using flex to print to a file fie1.txt after scanning through a file file0.txt

i was using yyin = fopen(file0.txt,r);
yyout = fopen(file1.txt,w);

now i am using bison and returning fromm flex file in place of printing,

what should i use in place of yyin and yyout in bison .y file .

and what i have to take if i need to open two files for writing file1.txt and file2.txt.
i think i cant use yyout1 and yyout2
 
Old 08-16-2005, 11:19 AM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
I'm a little confused here by your question. The action-routines defined in your grammar normally do this and all other work, at the appropriate specified places. What the routines actually do is up to you. Please elaborate.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installing bison and flex rameshsena Linux - Software 10 06-21-2010 12:33 PM
thunderbird and bison? bkz81 Linux - Newbie 3 08-11-2005 01:41 PM
Problem with binutils first pass / bison & flex installation peristaltic Linux From Scratch 3 03-20-2005 11:17 AM
[flex & bison] Why does my rule fail from line 2? chuanyung Programming 0 07-30-2004 05:21 AM
bison, flex and make problem ChimpFace9000 Programming 4 05-19-2002 08:49 PM


All times are GMT -5. The time now is 01:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration