Lists Home |
Date Index |
John Cowan wrote:
> Lars Marius Garshol scripsit:
> > Granted, the event model does require you to turn your head around
> > compared to ordinary programming, but that's easily done, and once
> > done event-based programming is very easy.
> Again, I would like to see anyone write a recursive descent compiler (or
> similar analyzer) using a lexer level that pushes events. The natural
> and readable becomes a vast wasteland of parser tables and gibberish.
Agreed, this would be completely unnatural for a
recursive-descent parser, but event-driven I/O would
be a natural fit for LALR parsers. It would work well
for LEX-style lexical analyzers too.