Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


Search this Thread
Old 07-17-2005, 12:30 PM   #1
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, 10:19 AM   #2
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,652

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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.


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 11:33 AM
thunderbird and bison? bkz81 Linux - Newbie 3 08-11-2005 12:41 PM
Problem with binutils first pass / bison & flex installation peristaltic Linux From Scratch 3 03-20-2005 10:17 AM
[flex & bison] Why does my rule fail from line 2? chuanyung Programming 0 07-30-2004 04:21 AM
bison, flex and make problem ChimpFace9000 Programming 4 05-19-2002 07:49 PM

All times are GMT -5. The time now is 10:43 AM.

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