std.d.lexer requirements

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Aug 2 12:42:31 PDT 2012


On 8/2/12, Walter Bright <newshound2 at digitalmars.com> wrote:
> A good IDE should do its parsing in a separate thread, so the main user
> input
> thread remains crisp and responsive.
>
> If the user edits the text while the parsing is in progress, the background
>
> parsing thread simply abandons the current parse and starts over.

Agreed, this is an editor/IDE domain problem. And there are some
obvious optimizations an editor could use, such as only lexing the
visible portion of text on the screen (and then lexing the rest in a
background thread which doesn't block the interface).


More information about the Digitalmars-d mailing list