From: "Huang Chee Thong" Newsgroups: comp.os.msdos.djgpp Subject: STDIN redirection Date: 16 Apr 1997 06:07:45 GMT Organization: Subscriber, Pacific Internet, Singapore Lines: 59 Message-ID: <01bc4a2c$dd16b2c0$0100a8c0@hal9000> NNTP-Posting-Host: 202.42.136.129 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hello, I am using DJGPP v2.01 and I am learning to use flex (2.5.4) and bison (1.25) for a school project. I compiled the example program from the ORA lex & yacc book (the last example in chapter 1). When I try to run in a dos box or under bash in win95 the program would only run once a while. For exapmle the following: eng is the executable and input is a text file I created using emacs. The output should also be "Parsed a simple sentence." and "Parsed a compound sentence." the last line of the input file never got to the program (I tried using redir - same thing). [cth d:/cth/source/lexyacc 10$] eng