At 09:37 AM 3/19/2001 +0100, [EMAIL PROTECTED] wrote:
>It seems like a lot of the features in jde need to scan java sources for
>regexps. Wouldn't it maybe be a good idea to try to build up a repository
>that goes along with the source, which new features could be built upon?
>Along with the advantages this would bring it would certainly imply a lot of
>work and disadvantages of various kinds. I haven't given this much thought,
>but maybe somebody else already has?
The JDE uses a BNF Java grammar to parse Java source code--not regular
expressions. The next version of the parser (provided by Eric Ludlam's
semantic package) will have the ability to create a persistant parse
database to avoid the need to reparse files every time they are loaded. It
will also include the ability to reparse only lines in the source file
that have changed. This should enable on-the-fly reparsing of edited files.
Further, the parse database could become the basis for JDE features that
require syntactic knowledge, such as method/field completion, repackaging,
global method name changing, etc.
- Paul