Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ac(1)

Ac(1)



  ab(1)                               CLIX                               ab(1)



  NAME

    ab - Runs the Ada program beautifier

  SYNOPSIS

    ab [-i indent] [-l linelen] [-w] [-K [lus]] [-I [lus]] [file ... ]

  FLAGS

    -i indent    Sets the indentation to indent spaces, which must be a
                 natural number.  The default indentation is 4 spaces.

    -l linelen   Sets the line length to linelen, which must be a positive
                 number.  The default line length is 64.  Warnings will be
                 generated if this is exceeded.  Note that ab will not always
                 prevent line overflow.

    -w           Suppresses warning messages.

    -K [lus]     Indicates the format of Ada keywords.  The l option puts them
                 in lowercase, u puts them in uppercase, and s leaves the case
                 unchanged.  The s option is used by default.

    -I [lus]     Indicates the format of Ada identifiers.  The l option puts
                 them in lowercase, the u option puts them in uppercase, and
                 the s option leaves the case unchanged.  The s option is used
                 by default.

  DESCRIPTION

    The ab command reads Ada source programs either from the specified files
    or from stdin and writes them to stdout with spacing and indentation that
    displays the structure of the code.  If the Ada source has syntax errors,
    ab displays the line number and token of the first error and then exits.
    It may be used as an Ada syntax checker.

  EXAMPLES

    This example displays on stdout a reformatted version of the expr.A file.
    The indentation is set to two columns and the maximum line length is set
    to 110 characters.

    ab -i 2 -l 110 expr.A


  EXIT VALUES

    The ab command exits with a value of 0 if successful.  An exit value of 2
    is returned if an invalid flag is specified, or if the filename is not
    found.



  2/94 - Intergraph Corporation                                              1






  ab(1)                               CLIX                               ab(1)



  RELATED INFORMATION

    Commands:  ac(1), Ac(1)



















































  2                                              Intergraph Corporation - 2/94




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026