[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SableCC event driven?



Hi,

I am searching for a parser generator that is able to create event
driven parsers. More precisely, I do not want that the parser is using
an Iterator pattern for accessing its tokens (as in Token
Tokenizer.nextToken()) but may be controlled by events (as in Parser
addToken(Token t)). The reason is that in my case the Tokens are SAX
events. The Iterator pattern would force me to either build a token list
in memory (which is unsuitable for very large documents) or do the
parsing in a separate thread (which is unsuitable for performance
reasons).


Kind regards,

Jochen




-- 
Etienne M. Gagnon, Ph.D.                             egagnon@j-meg.com
President                                      http://www.sablevm.org/
J-Meg inc.                                     http://www.sablecc.org/