COBOL and References
Posted: Tue Jun 24, 2008 6:42 pm
Jussi,
Some time ago, we had a conversation about the references tag type, and how I thought it would be pretty useful, but we had no way to populate it. I've written a program that will produce tag records from the cross-reference data in a compile listing - I'll need to dust it off and tweak it a bit since I've changed jobs and COBOL compilers, but it worked well.
I've also recently realized that there are at least 2 very useful kinds of references that the tagger could produce for me - references to CALLed programs and references to COPY books (#include's). I'll have to do it, but I think it would be very simple to add regex's to the cobol.c module in Exuberant CTags to produce both the definition and reference tags.
With references, I think there are 2 basic things that would be valuable. First, similar to the tag search, would be a list of all the references to a particular tag, with the ability to navigate through the list. I haven't used it enough to be sure, but it seems like the existing tag search result box would be an excellent start on this. It would probably be useful to be able to expand and collapse references by file, but I realize that this kind of takes you away from the grid display used with tags.
Second, it would be useful to be able to display a tree of all the references to a particular tag or tag type. For example, the CALL tree of a workspace or a file would be useful, or the COPY tree.
Does any of this look do-able?
Bill Diener
Some time ago, we had a conversation about the references tag type, and how I thought it would be pretty useful, but we had no way to populate it. I've written a program that will produce tag records from the cross-reference data in a compile listing - I'll need to dust it off and tweak it a bit since I've changed jobs and COBOL compilers, but it worked well.
I've also recently realized that there are at least 2 very useful kinds of references that the tagger could produce for me - references to CALLed programs and references to COPY books (#include's). I'll have to do it, but I think it would be very simple to add regex's to the cobol.c module in Exuberant CTags to produce both the definition and reference tags.
With references, I think there are 2 basic things that would be valuable. First, similar to the tag search, would be a list of all the references to a particular tag, with the ability to navigate through the list. I haven't used it enough to be sure, but it seems like the existing tag search result box would be an excellent start on this. It would probably be useful to be able to expand and collapse references by file, but I realize that this kind of takes you away from the grid display used with tags.
Second, it would be useful to be able to display a tree of all the references to a particular tag or tag type. For example, the CALL tree of a workspace or a file would be useful, or the COPY tree.
Does any of this look do-able?
Bill Diener