On Monday, May 17, 2010 09:00 PM, John Baker wrote:
> This scheme works nicely.   I haven't looked under the hood but how are the
> regex's being applied?  Does it occur in J or in the GTK editor.
> 
> Chris,  I think I will get used to the (defs names) pretty quickly.  It's a
> nice relevant way to jump around in J source files.  I have tried the editor
> with large semi-compiled JOD scripts that contains hundreds of defined
> names.  Of course it slows down but is still useful.  For scripts with less
> than 30 names it's almost the bees knees.

Regex for defs  is done in J. The verb is globalassigns in
Ide|edit|tools.ijs. It could be smarter, e.g. ignore strings and comments.

The regex could be compiled (rxcomp) - am not sure if this would make a
significant difference for those large scripts.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to