☜ | expr1977 Version of ANSI Standard | ☞ |
Expressions are made up of expression atoms separated by binary string, arithmetic, or truth-valued operators.
expr | ::= | expratom | [ exprtail ] ... |
See also the transition diagram for expr.
exprtail | ::= | │ │ │ │ │ │ |
[ ' ] ? pattern |
│ │ │ │ │ │ |
binaryop | ::= | │ │ │ │ │ │ │ │ |
_ + - * / \ # |
│ │ │ │ │ │ │ │ |
(Note: underscore) (Note: hyphen) |
See also the transition diagram for binaryop.
truthop | ::= | │ │ │ |
relation logicalop |
│ │ │ |
See also the transition diagram for truthop.
relation | ::= | │ │ │ │ │ │ |
= < > [ ] |
│ │ │ │ │ │ |
logicalop | ::= | │ │ │ |
& ! |
│ │ │ |
The order of evaluation is as follows:
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, or svn with an undefined value is erroneous.
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.
This page most recently updated on 15-Nov-2023, 09:47:42.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)