>I have a nifty parser for a C-like language. I can run it on a file or a>string containing one statement and everything is cool. What I want it to>do is to point to a file and ask it to parse *one* statement only, even if>there are many statements in sequence in the file.

Here is how I used yacc as a parser for a database system where one
line/statement was read from the keyboard, parsed, and then processed
by the database manager.

--
-- Joakim Sernbrant, Royal Institute of Technology, Stockholm, Sweden
-- Internet: d87-jse@nada.kth.se
[This doesn't solve the problem of yacc telling the lexer when the input is
done if there is a readahead token. -John]
--