[antlr-interest] antlr 3 - make parser event driven ?

Tom Moog tmoog at polhode.com
Wed Aug 20 20:04:33 PDT 2003


If antlr3 is table driven rather than being stack
based, you might want to consider inverting the
relationship between the lexer and parser.  In
other words, let the lexer call the parse each
time it recognizes a token.  This will make it
amenable to event driven applications.  Example:
(a) processing xml sax events (b) in the past
some users have seen deadlock problems handling
input from a socket - but I can't recall the
details at the moment (perhaps the parser had
to perform some action to get more data, but
it couldn't do it because it needed one more
token of lookahead).


Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

More information about the antlr-interest mailing list