My Source Code Diagramming Programs
Last revised 5/1/2009
INTRODUCTION
These programs diagram source code in the following languages:
C and C++
FORTRAN
HTML (very incomplete)
IDL, PV-WAVE, GDL and FL
They do things like draw lines showing the start and end of routines and blocks,
put * next to jumps, and = next to commented out sections, and can warn you of
certain classes of error.
They can help you find problems in your own code, or help you look at other people's
long complicated legacy code.
For example:
The VAX and MS-DOS procedures have not recently been tested.
If you like or dislike these programs, send e-mail to username grunes at domain yahoo.com.
Bug reports must include sample code on which it failed.
The programs themselves are in FORTRAN.
I know that is a problem for users of other programming languages,
but FORTRAN is freely available as g77 or g95 under Cygwin (under Windows) or Linux,
and is available as f77, f90 or f95 on many other platforms. Compilation is simple, e.g.
g77 diagramf.f -o diagramf
I suggest you download and extract the
Zip archive of all diagram files
The browser viewable source code and procedures were modified for display by web browsers.
To use them:
1. Remove ".html" from the file names.
2. Remove the 2 lines of HTML code added to the beginnings.
3. Remove the line of HTML code added to the end.
diagramc: Diagrams C, C++
diagramc.f Fortran language source code
Browser viewable version
Procedures to run diagramc without answering questions:
diagramc.sh Unix csh procedure
Browser viewable version
diagramc.bat MS-DOS procedure
Browser viewable version
diagramc.vax VAX VMS DCL procedure
Browser viewable version
diagramf: Diagrams FORTRAN
diagramf.f Fortran language source code
Browser viewable version
Procedures to run diagramf without answering questions on card format code:
diagramf.sh Unix csh procedure
Browser viewable version
diagramf.bat MS-DOS procedure
Browser viewable version
diagramf.vax VAX VMS DCL procedure
Browser viewable version
Procedures to run diagramf without answering questions on free format code:
diagram9.sh Unix csh procedure
Browser viewable version
diagram9.bat MS-DOS procedure
Browser viewable version
diagram9.vax VAX VMS DCL procedure
Browser viewable version
diagramh: Diagrams HTML (Very Incomplete)
diagramh.f Fortran language source code
Browser viewable version
(Sorry: web browsers reformat this so it won't work.
Procedures to run diagramh without answering questions:
diagramh.sh Unix csh procedure
Browser viewable version
diagramh.bat MS-DOS procedure
Browser viewable version
diagramh.vax VAX VMS DCL procedure
Browser viewable version
diagrami: Diagrams IDL, PV-WAVE, GDL, FL
diagrami.f Fortran language source code
Browser viewable version
Procedures to run diagrami without answering questions:
diagrami.sh Unix csh procedure
Browser viewable version
diagrami.bat MS-DOS procedure
Browser viewable version
diagrami.vax VAX VMS DCL procedure
Browser viewable version
undiagram: Try to derive source code from diagram
undiagram.f Fortran language source code
Browser viewable version