Re: PB Lexical Analysis (function popup): How?
Re: PB Lexical Analysis (function popup): How?
- Subject: Re: PB Lexical Analysis (function popup): How?
- From: Andreas Monitzer <email@hidden>
- Date: Mon, 14 Jan 2002 20:31:28 +0100
On Monday, January 14, 2002, at 04:21 , Eric Marshall wrote:
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 :-)
This would break when using tear-off menus (when they'd implement it
again).
andy