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

exprtail

Draft MDC Standard

7.2 Expression tail exprtail

    exprtail::=





binaryop
[ ' ] truthop


expratom

[ ' ] ? pattern




The order of evaluation is as follows:

  1. Evaluate the left-hand expratom.
  2. If an exprtail is present immediately to the right, evaluate its expratom or pattern and apply its operator.
  3. Repeat step b. as necessary, moving to the right.

In the language of operator precedence, this sequence implies that all binary string, arithmetic, and truth-valued operators are at the same precedence level and are applied in left-to-right order.

Any attempt to evaluate an expratom containing an lvn, gvn, ssvn, or svn with an undefined value is erroneous. A reference to a lvn with an undefined value causes an error condition with ecode = "M6". A reference to a gvn with an undefined value causes an error condition with ecode = "M7". A reference to an svn with an undefined value causes an error condition with ecode = "M8". A reference to an ssvn with an undefined value, where the semantics of that action are not specified for that specific ssvn, causes an error condition with ecode = "M60".

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 15-Nov-2023, 13:16:46.

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