ipsort.icn: Program to sort Icon procedures

June 27, 1997; Ralph E. Griswold
This file is in the public domain.
   This program reads an Icon program and writes an equivalent
program with the procedures sorted alphabetically. Global, link,
and record declarations come first in the order they appear in
the original program.  The main procedure comes next followed by
the remaining procedures in alphabetical order.

   Comments and white space between declarations are attached to
the next following declaration.

Limitations: This program only recognizes declarations that start
at the beginning of a line.

   Comments and interline white space between declarations may
not come out as intended.

   One option is accepted:

     -v      preserve VIB section at end

Source code | Program Library Page | Icon Home Page