Stylize

Purpose:  The equated command STYLIZE improves the readability of a System File (SF) or any Data Base Library (DBL) object with text.  This utility makes it easier to find specified text in a source listing, which can speed up debugging.  HELP or a question mark (?) can be entered at the prompt for more information.

Syntax

STYLIZE [HELP;?]

EXAMPLE

*STYLIZE

Several modifications are made to improve readability and provide standard code in the source.  The operations marked with brackets are optional.  This allows you to enter ACCENT R code without concern indenting and such.

1.             Upper case all ACCENT R statements while leaving quoted strings as defined.

[2.     Lower case comments (except those in mixed mode).]

3.             Add space lines before IF, UNLESS, ORIF, ORUNLESS, and START statements.

4.             Add space lines after CONTINUE or REPEAT statements if they appear together.

5.             Add a line of " ! -----" before and after ROUTINE and SEGMENT statements.

6.             Add a line of " ! = = =" before and after SECTION statements.

7.             Add a line of " ! ****" before DEFINE statements in a SF.

[8.     Add or correct logic indentations.]

9.             Renumber logic levels (numbers following IF, START, ELSE, etc.).

[10.   Add label lines (incremented by 10 for comment lines).  These lines are useful with 

the FIND Command in PM DEBUG and your favorite editor.]

NOTES:  The STYLIZE command uses a screen approach for input rather than scrolling prompts.

STYLIZE recognizes TRIGGER as the equivalent of ROUTINE.  STYLIZE can handle spaces between a conditional statement (IF; UNLESS) and its level specification.  STYLIZE handles comment lines that end with an ampersand (& - used as a continuation indicator).  The utility changes these lines into normal comments.