[antlr-interest] Possible incremental parse approach?
Austin Hastings
Austin_Hastings at Yahoo.com
Sun Oct 14 14:34:58 PDT 2007
Rick Mann wrote:
> Maybe I could do this? Run my parser in a separate thread. The input
> character stream can block when it needs more data, at which point the
> main thread of my GUI app could put data into its queue...
>
> Does this approach sound like it would work?
>
That sounds workable. But you should give some consideration to how the
user is going to "escape" when she gets into a parse context and wants
to reset back to just evaluating expressions.
Some of what you're doing is basically a line editor. But the need to be
able to abort the parse (or suspend/resume it) and just do commands is
going to make life really complex.
=Austin
More information about the antlr-interest
mailing list