Re: PB Lexical Analysis (function popup): How?
Re: PB Lexical Analysis (function popup): How?
- Subject: Re: PB Lexical Analysis (function popup): How?
- From: Eric Marshall <email@hidden>
- Date: Mon, 14 Jan 2002 10:21:58 -0500
>
My question is: when and/or how should I run the `parser' procedure to stay
>
responsive and at the same time be keystroke-actual (meaning that the menu
>
should be updated exactly as the user types in).
>
>
Clearly, this procedure should run in the background (in a separate thread I
>
imagine).
One super simple way would be to parse the file when the menu is requested
to display. No thread maintenance is required, but for large files the parsing
time may be prohibited. Don't know what you'd want to display in the menu if
there were syntax errors though :-)