irsort.icn: Program to sort Icon record declaration

June 23, 2000; Ralph E. Griswold
This file is in the public domain.
   This program reads an Icon program and writes an equivalent
program with the record declaration sorted alphabetically at the
end. Global, link, invocable, and procedure declarations come in the order
they appear in the original program.

   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.

Note:  This program is still raw.  White space and comments related
to records may not come out as expected.  A closed parenthesis in
a comment in the midst of a record declaration will cause havok.

Source code | Program Library Page | Icon Home Page