[antlr-interest] Parsing a continous stream of data ...

Sriyansa sriyansa at gmail.com
Tue Dec 28 23:56:37 PST 2004


Hi,

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
feasible.

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?

Thanks,
Sriyansa




More information about the antlr-interest mailing list