Handling streaming input

"Sriyansa" <sriyansa@gmail.com>
30 Dec 2004 00:55:37 -0500

          From comp.compilers

Related articles
Handling streaming input sriyansa@gmail.com (Sriyansa) (2004-12-30)
Re: Handling streaming input cfc@shell01.TheWorld.com (Chris F Clark) (2004-12-31)
| List of all articles for this month |

From: "Sriyansa" <sriyansa@gmail.com>
Newsgroups: comp.compilers
Date: 30 Dec 2004 00:55:37 -0500
Organization: http://groups.google.com
Keywords: parse, question
Posted-Date: 30 Dec 2004 00:55:37 EST


I am trying to write a parser module which takes in a streaming input
and converts it to an operation stack. All the steps (char stream ->
token stream -> operation stack) are asynchronous and the modules read
from and write into incomplete data structures.

The grammar for the parsing is itself not very complicated and I could
use ANTLR to generate the parser. However, embedding the code for the
customized I/O (a significant piece) in the grammar file does not look

Now the questions:

1. Is there any other parser generator more suitable for such a task?
2. Or am I missing something in ANTLR irself?
3. If I have to change the ANTLR source to allow for such I/O where do
I start?


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.