APE—a set of T E X macros to format Ada programs
S., Sankar · ACM SIGAda Ada Letters · 1989
This report describes a set of macros designed for the purpose of formatting Ada [Ada83 ] programs in TEX 1 .These macros were implemented by the author in early 1987, and the y have been refined a few times since .They have also been extended for the language extensions of Ada developed by the Program Analysis and Verification Group at Stanfor d University.Some of these language extensions are Anna (LvHKO87] and TSL [HL85] .These macros exist as one collection in a file which is included into the document using th e \input command .This file is available on request from the author .The design of the macros were motivated by the programexample environment in Scribe .It is for this reason that they have been named APE, which is an acronym for "Ad a Program-Example" .The macros are of two kinds-global macros and local macros .Th e global macros are visible throughout the scope in which the \input command has been inserted .The most important global macros are \apebegin, \apeend and \ap .\apebegi n \apeend defines an environment in which a complete Ada program can be formatted , while \ap is a macro with one argument which is used for insertion of program text withi n ordinary text .The local macros are available for use only within environments defined b y \apebegin . . .\apeend and within the program text of arguments to \ap .