comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: Free source code diagramming programs

Re: Free source code diagramming programs
type: item
description: For people who have trouble reading that web page, see the folowing message I just posted this message to alt.sources: My source code diagramming programs Last revised 4/9/2006 This post to alt.sources is for anyone who has trouble reading my website http://www.geocities.com/grunes/diagram.html 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: +----------- subroutine a(x) | 1 |+---------- do i=1,5 | 2 ||+----------- if(i/2*2.eq.i)then | 3 ||| x=x*i | 4 ||+----------- else | 5 ||| x=x/i | 6 ||+----------- endif | 7 |+---------- enddo | 8 +----------- end | 9 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 The files are at http://www.geocities.com/grunes/diagram.html, and are also included below. If you request it, I will email you a diagram.tar.gz archive containing everything. Included files: diagramc: Diagrams C, C++ diagramc.f Fortran language source code Procedures to run diagramc without answering questions: diagramc.sh Unix csh procedure diagramc.bat MS-DOS procedure diagramc.vax VAX VMS DCL procedure diagramf: Diagrams FORTRAN diagramf.f Fortran language source code Procedures to run diagramf without a…
date: 2006-04-10T19:52:47-00:00

Re: Free source code diagramming programs
type: item
description: "mitch grunes" <idlwizard-1@yahoo.com> writes: > For people who have trouble reading that web page, see the folowing > message I just posted this message to alt.sources: [snip] I suggest that anyone who has trouble reading the web page should contact you directly. Posting serveral thousand lines of Fortran to comp.lang.c and comp.lang.c++ is not a good idea. -- Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst> San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst> We must do something. This is something. Therefore, we must do this.
creator: Keith Thompson
date: 2006-04-10T20:32:47-00:00

Re: Free source code diagramming programs
type: item
description: "mitch grunes" <idlwizard-1@yahoo.com> writes: > +----------- subroutine a(x) | 1 > |+---------- do i=1,5 | 2 > ||+----------- if(i/2*2.eq.i)then | 3 > ||| x=x*i | 4 > ||+----------- else | 5 > ||| x=x/i | 6 > ||+----------- endif | 7 > |+---------- enddo | 8 > +----------- end | 9 Do you actually find it easier to follow the lines or to look at the indentation? I'd take indentation over a snaking maze of lines any day. -- "Give me a couple of years and a large research grant, and I'll give you a receipt." --Richard Heathfield
creator: Ben Pfaff
date: 2006-04-10T21:56:38-00:00