References
Posted: Sat Aug 11, 2007 10:23 pm
Jussi,
Some time ago, someone requested a facility in Zeus to find references. http://www.zeusedit.com/forum/viewtopic.php?t=739. I've also asked for a Find All features, mostly to find references in the current document. The grep solution works well, and creating a macro to do it helps even more, but it seems to me that this could still be improved.
As you comment in the topic above, it should be possible to integrate an xref tool into Zeus - unfortunately, I haven't found one yet at a price I'm willing to pay (not much). However, for COBOL at least, I think I could put one tegether pretty easily. Another possibility is to use the compiler's XREF output.
Here's what I'd like to see:
Use a database similar to the tags DB to store references as well. The content would be the name and where it's defined, possibly the type of definition. This would be followed by a list of references with where it's used. Having the ability to store a reference "type" would also be very useful - could be used for referenced, tested, modified, etc. - any type of usage that makes sense and can be derived by a tool.
Use a function similar to "show definition" to show references - bring up a list of references the same way "go to definition" does with tags - if there's only 1, just go there. Obviously, you could go to any item on the list. The only significant difference would be to display the reference type also.
I think you told me in a different conversation that the tags database has a reference type that wasn't used currently. If you had a way to populate them, could this be used to do the job? If the tag process could be extended (externally) to also provide reference data, that would provide a very useful capability.
A side note - to an old mainframe programmer, the tags facility is just awesome. However, after using it a while, I find myself wishing for a "Back" button like in a browser. If I remember properly, Brief used to provide something like this with a push/pop cursor command, but I haven't seen this is Zeus. In any event, it'd be very nice to have it automated to come back from definitions, references, finds, etc.
Some time ago, someone requested a facility in Zeus to find references. http://www.zeusedit.com/forum/viewtopic.php?t=739. I've also asked for a Find All features, mostly to find references in the current document. The grep solution works well, and creating a macro to do it helps even more, but it seems to me that this could still be improved.
As you comment in the topic above, it should be possible to integrate an xref tool into Zeus - unfortunately, I haven't found one yet at a price I'm willing to pay (not much). However, for COBOL at least, I think I could put one tegether pretty easily. Another possibility is to use the compiler's XREF output.
Here's what I'd like to see:
Use a database similar to the tags DB to store references as well. The content would be the name and where it's defined, possibly the type of definition. This would be followed by a list of references with where it's used. Having the ability to store a reference "type" would also be very useful - could be used for referenced, tested, modified, etc. - any type of usage that makes sense and can be derived by a tool.
Use a function similar to "show definition" to show references - bring up a list of references the same way "go to definition" does with tags - if there's only 1, just go there. Obviously, you could go to any item on the list. The only significant difference would be to display the reference type also.
I think you told me in a different conversation that the tags database has a reference type that wasn't used currently. If you had a way to populate them, could this be used to do the job? If the tag process could be extended (externally) to also provide reference data, that would provide a very useful capability.
A side note - to an old mainframe programmer, the tags facility is just awesome. However, after using it a while, I find myself wishing for a "Back" button like in a browser. If I remember properly, Brief used to provide something like this with a push/pop cursor command, but I haven't seen this is Zeus. In any event, it'd be very nice to have it automated to come back from definitions, references, finds, etc.