☜ | routinebody1990 Version of ANSI Standard | ☞ |
The routinebody is a sequence of lines terminated by an eor. Each line starts with one ls which may be preceded by an optional label and formallist. The ls is followed by zero or more li (level-indicator) which are followed by zero or more commands and a terminating eol. One or more spaces may separate the comment from the last command of a line. The LEVEL of a line is the number plus one of li.
routinebody | ::= | line | ... | eor |
line | ::= | │ │ │ |
formalline levelline |
│ │ │ |
formalline | ::= | label | formallist | ls | linebody |
linebody | ::= | ┌ │ └ |
commands [ cs comment ] comment |
┐ │ ┘ |
eol |
See 2.5.3 for the definition of comment.
formallist | ::= | ( [ L name ] ) |
See 2.2.1 for the definition of name. See section 1 for the definition of L.
label | ::= | │ │ │ |
name intlit |
│ │ │ |
See 2.2.1 for the definition of name. See 2.2.3 for the definition of intlit.
commands | ::= | command [ cs command] ... |
See 2.5 for the definition of command.
ls | ::= | SP ... |
li | ::= | . [ SP ] ... |
cs | ::= | SP ... |
eol | ::= | CR LF |
eor | ::= | CR FF |
Each occurrence of a label to the left of ls in a line is called a defining occurrence of label. No two defining occurrences of label may have the same spelling in one routinebody. A formallist may only be present on a line whose LEVEL is one, i.e., does not contain an li.
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 17-Nov-2023, 10:29:51.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)