PB Lexical Analysis (function popup): How?
PB Lexical Analysis (function popup): How?
- Subject: PB Lexical Analysis (function popup): How?
- From: Nicolas Ojeda Bar <email@hidden>
- Date: Mon, 14 Jan 2002 10:44:51 -0300
Hi!
I am (trying) to write a text editor for a little programming language I
invented.
Now I want to have a menu in the document's window containing the names of
all routines typed in the file and allowing instant jumping to the point
where they are defined.
I am almost finishing the structure parser that would give me all the
necessary information that I would need to implement this.
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).
Now, this is the exact same feature that Project Builder and CodeWarrior
have and I would love to hear from any one who has any kind of info or
advice as to how to implement this, especially PB engineers ;)!
Best regards,
nob.