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

Program Punctuation

1977 Version of ANSI Standard

1.2.3 Program Punctuation

The following special characters may occur in programs.

Unary Arithmetic Operators

 +  plus
- negate

Unary Logical Operator

 '  not

Binary Arithmetic Operators

 +  addition
- subtraction
* multiplication
/ division
\ division with integer quotient
# modulo

Binary Relational Operators

 <  numeric less than
'< numeric greater than or equal
> numeric greater than
'> numeric less than or equal
= string identity
'= string nonidentity
[ string contains
'[ string not-contains
] string follows
'] string not-follows
? string pattern match
'? string pattern nonmatch

Binary Logical Operators

 &  and
'& nand
! or
'! nor

Binary String Operator

 _  concatenation

Delimiters

 ,  argument separation, subscript separation
= value assignment
: post conditional expression, subargument separation
( ) grouping
@ indirection
" string literals
. decimal point in numeric literals
^ preceding routine name in DO, GOTO
E preceding exponent in numeric literals
; comment
space separating command words

Prefixes

 ^  global variable names
$ functions, special variable names
% available in names of the programmer’s choice
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.

This page most recently updated on 16-Nov-2023, 17:20:50.

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