HP 3000 Manuals

Construct Categories [ VIRTUOSO CODE GENERATOR Reference Manual ] MPE/iX 5.0 Documentation


VIRTUOSO CODE GENERATOR Reference Manual

Construct Categories 

The generator constructs can be divided into categories which describe
their basic functions, as follows:

 *  System Dictionary Retrieval constructs retrieve information from the
    System Dictionary.  The information is retrieved and placed in the
    generated output using parameter replacement.

    You use the following constructs to retrieve System Dictionary
    information:

         #for/#endfor
         #getent
         #getrel

    For example, you can use the #for construct to retrieve all of the
    relationships of the relationship type you specify.  The #for
    construct, in addition to retrieving System Dictionary information,
    performs looping.

 *  Flow of Control constructs let you specify the flow of control of
    generated output, such as looping and conditional evaluations.

    You use the following constructs for flow of control:

         #entry/#endentry
         #for/#endfor
         #section
         #returnvalue
         #let
         #include
         #if/#else/#endif
         #block/#endblock
         #macro/#endmacro
         #return
         #while/#endwhile

    For example, you can use the #if construct to perform conditional
    evaluations.

 *  Output constructs let you control the appearance of generated
    comments, text, and quoted strings.

    You can use the following constructs for formatting:

         #option
         #comment
         #description
         #printerror
         #printkeywords

    An example of a construct which controls the appearance of generated
    text is the #description construct.  This construct lets you specify
    the starting and ending columns for generated output and override
    other format defaults.  The #comment construct lets you include
    in-line documentation.  The #comment lines do not appear in the
    generated output.

This chapter presents information on each of the above constructs and
their usage.  When coding the constructs, remember that the construct
name must be preceded by the "#" sign.  In textmode="COBOL" it must be in
column 7 or later.  Otherwise, "#" may appear in any column.



MPE/iX 5.0 Documentation