Compare Java to MUMPS/Ideas from MUMPS

From VistApedia
Jump to: navigation, search

UP Collect Language Ideas

<include>

Introduction

The M Computer Language (sometimes called MUMPS) has abbreviations for each command. We will have sections in this page for each character of the alphabet. This information is from Ed de Moel's MUMPS by Example web page.

Unless otherwise stated, all commands on this page are part of the Standard M Language and are implemented by all Standard M vendors. Any commands that are not implemented by all Standard M vendors are not used by VistA application code.

Commands

Unless otherwise stated, each command may be followed by the colon (:), then a postcondition which is an expression that when evaluated is interpreted as either True (1) or False (0). When the postcondition is interpreted as True, the command is executed with its arguments. When the postcondition is interpreted as False then the command is NOT executed with its arguments and is skipped. The postcondition functions as a "guard" that either allows the command to be executed or not.
Unless otherwise stated, most commands are followed by a space and more information needed to complete the command action. This extra information is a command argument. Most commands that have NO argument will take a default action. The commands that have no extra information are called argumentless commands.
   ↑ M Language Elements ↑  |  → Command B → 

command A or a

 Currently, the letter sequence A is the prefix for several commands: 

ASSIGN or assign or a or A

Currently, the letter sequence A is the abbreviation for the Command ASSIGN. This Command is part of the next M Standard.
This command is not implemented by all vendors.

ABLOCK or ablock or ab or AB

 Currently, the letter sequence AB is the abbreviation for the Command ABLOCK. This Command is part of the next M Standard.
This command is not implemented by all vendors. 

ASTART or astart or asta or ASTA

 Currently, the letter sequence ASTA is the abbreviation for the Command ASTART. This Command is part of the next M Standard.
This command is not implemented by all vendors.

ASTOP or astop or asto or ASTO

 Currently, the letter sequence ASTO is the abbreviation for the Command ASTOP. This Command is part of the next M Standard.
This command is not implemented by all vendors.

AUNBLOCK or aunblock or aunb or AUNB

 Currently, the letter sequence AUNB is the abbreviation for the Command AUNBLOCK. This Command is part of the next M Standard.
This command is not implemented by all vendors.

Former Non-Standard Command

The letter A used to be the abbreviation for the Command ASK.  No Standard M implementation is required to implement this command. Non-Standard M systems may include the Command ASK.
  ← Command A ←  |  ↑ M Language Elements ↑  |  → Command C → 

command B or b

 Currently, the letter B is the abbreviation for the Command BREAK.  

command C or c

 Currently, the letter C is the abbreviation for the Command CLOSE.  

command D or d

 Currently, the letter D is the abbreviation for the Command DO. 

command E or e

 Currently, the letter sequence E is the prefix for several commands: 

ELSE or else or e or E

Currently, the letter sequence E is the abbreviation for the Command ELSE.

ESTART or estart or esta or ESTA

 Currently, the letter sequence ESTA is the abbreviation for the Command ESTART. This Command is part of the next M Standard.
This is part of the MUMPS Windowing Application Programmer Interface, and may not be implemented by all vendors. This command is not implemented by all vendors.

ESTOP or estop or esto or ESTO

 Currently, the letter sequence ESTO is the abbreviation for the Command ESTOP. This Command is part of the next M Standard.
This is part of the MUMPS Windowing Application Programmer Interface, and may not be implemented by all vendors. This command is not implemented by all vendors.

ETRIGGER or etrigger or etri or ETRI

 Currently, the letter sequence ETRI is the abbreviation for the Command ETRIGGER. This Command is part of the next M Standard.
This is part of the MUMPS Windowing Application Programmer Interface, and may not be implemented by all vendors. This command is not implemented by all vendors. M/Command F M/Command G 

command H or h

 Currently, the letter sequence H is the prefix for several commands: 

HALT or halt or h or H

Currently, the letter sequence H is the abbreviation for the Command HALT.

HANG or hang or h or H

Currently, the letter sequence H is the abbreviation for the Command HANG.

command I or i

 Currently, the letter sequence I is the prefix for several commands: 

IF or if or i or I

Currently, the letter sequence I is the abbreviation for the Command IF. 

command J or j

 Currently, the letter sequence J is the prefix for several commands: 

  1. REDIRECTM/JOB

command K or k

 Currently, the letter sequence K is the prefix for several commands: 

  1. REDIRECTM/KILL
M/Command KSUBSCRIPTS
M/Command KVALUE 

command L or l

 Currently, the letter sequence L is the prefix for several commands: 
M/Command LOCK

command M or m

 Currently, the letter sequence M is the prefix for several commands: 

MERGE or merge or m or M

Currently, the letter sequence M is the abbreviation for the Command MERGE. 

command N or n

 Currently, the letter sequence N is the prefix for several commands: 

  1. REDIRECTM/NEW M/Command O M/Command P
M/Command Q M/Command R M/Command S M/Command T
M/Command U M/Command V M/Command W M/Command X
M/Command Y M/Command Z

Operators - note: use punctuation in parentheses, not operator name

M/Operator plus
M/Operator minus
M/Operator times
M/Operator divided by
M/Operator integer divided by
M/Operator modulo
M/Operator to the power of
M/Operator concatenate
M/Operator equals
M/Operator is equal to
M/Operator object is equal to
M/Operator is greater than
M/Operator is less than
M/Operator is less than or equal to
M/Operator is greater than or equal to
M/Operator matches pattern
M/Operator contains
M/Operator follows
M/Operator follows or is equal to
M/Operator collates after
M/Operator collates after or is equal to
M/Operator and
M/Operator or
M/Operator exclusive or
M/Operator not
M/Operator indirect

(Intrinsic) Special_Variables svn

M/Special Variable A M/Special Variable B M/Special Variable C M/Special Variable D
M/Special Variable E M/Special Variable F M/Special Variable G M/Special Variable H
M/Special Variable I M/Special Variable J M/Special Variable K M/Special Variable L
M/Special Variable M M/Special Variable N M/Special Variable O M/Special Variable P
M/Special Variable Q M/Special Variable R M/Special Variable S M/Special Variable T
M/Special Variable U M/Special Variable V M/Special Variable W M/Special Variable X
M/Special Variable Y M/Special Variable Z

Functions

M/Function A M/Function B M/Function C M/Function D
M/Function E M/Function F M/Function G M/Function H
M/Function I M/Function J M/Function K M/Function L
M/Function M M/Function N M/Function O M/Function P
M/Function Q M/Function R M/Function S M/Function T
M/Function U M/Function V M/Function W M/Function X
M/Function Y M/Function Z

</include>