Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Embedded Programs

Draft MDC Standard

6.4 Embedded programs

An embedded xxx M[UMPS] program is a program which consists of M[UMPS] text and text written to the specifications of the xxx programming language or standard. Although it is not a routine, an embedded M[UMPS] program conforms to the syntax of a M[UMPS] routinebody.

    extsyntax::= & extid ( exttext )
    exttext::=

graphic ...
[ graphic ] ... [ eol & ls [ graphic ] ... ] ...


    extid::=

SQL
Z[unspecified]


In exttext each eol & ls sequence is either ignored or, if required by the other programming language or standard, replaced by one or more graphic characters. Exttext is then treated as if the graphic characters following the ls were part of the previous line (a continuation line).

The exact syntax of the remainder of exttext is defined by the external programming language or standard. In the case of extid being SQL this standard is ANSI X3.135 (see also Annex D). extids differing only in the use of corresponding upper and lower case letters are equivalent. extids not beginning with the letter Z are reserved for future extensions to the language.

Note: An embedded program implies that one or more M[UMPS] routines may be created by some compilation process, replacing any external syntax with appropriate M[UMPS] command lines, function calls et cetera. An embedded program or embedded program pre-processor does not, therefore, need to adhere to the portability requirements of Section 2 although the equivalent M[UMPS] routines and M[UMPS] implementation should.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 13-Sep-2014, 17:32:47.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)