Difference between revisions of "MUMPS/MUMPS Language Elements"

From VistApedia
Jump to: navigation, search
(Redirected page to M/M Language Elements)
 
Line 1: Line 1:
== Introduction ==
+
#REDIRECT[[M/M Language Elements]]
MUMPS has abbreviations for each command. We will have sections in this page for each character of the alphabet.
+
[[Category:M sub-site]]
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 MUMPS Language and are implemented by all Standard MUMPS vendors. Any commands that are not implemented by all Standard MUMPS vendors are not used by {{G|VistA}} application code. 
 
 
 
== Commands ==
 
Unless otherwise stated, each command may be followed by the colon (''':'''), then a <u>postcondition</u> which is an expression that when evaluated is interpreted as either True (1) or False (0). When the <u>postcondition</u> is interpreted as True, the command is executed with its arguments. When the <u>postcondition</u> is interpreted as False then the command is '''NOT''' executed with its arguments and is skipped. The <u>postcondition</u> 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 <u>argumentless</u> commands.
 
 
 
{{:MUMPS/Command_A}}
 
{{:MUMPS/Command_B}}
 
{{:MUMPS/Command_C}}
 
{{:MUMPS/Command_D}}
 
{{:MUMPS/Command_E}}
 
{{:MUMPS/Command_F}}
 
{{:MUMPS/Command_G}}
 
{{:MUMPS/Command_H}}
 
{{:MUMPS/Command_I}}
 
{{:MUMPS/Command_J}}
 
{{:MUMPS/Command_K}}
 
{{:MUMPS/Command_L}}
 
{{:MUMPS/Command_M}}
 
{{:MUMPS/Command_N}}
 
{{:MUMPS/Command_O}}
 
{{:MUMPS/Command_P}}
 
{{:MUMPS/Command_Q}}
 
{{:MUMPS/Command_R}}
 
{{:MUMPS/Command_S}}
 
{{:MUMPS/Command_T}}
 
{{:MUMPS/Command_U}}
 
{{:MUMPS/Command_V}}
 
{{:MUMPS/Command_W}}
 
{{:MUMPS/Command_X}}
 
{{:MUMPS/Command_Y}}
 
{{:MUMPS/Command_Z}}
 
 
 
== Operators - note: use punctuation in parentheses, not operator name ==
 
{{:MUMPS/Operator_plus|plus <nowiki>(+)</nowiki>}}
 
{{:MUMPS/Operator_minus|minus <nowiki>(-)</nowiki>}}
 
{{:MUMPS/Operator_times|times <nowiki>(*)</nowiki>}}
 
{{:MUMPS/Operator_divided_by|divided by <nowiki>(/)</nowiki>}}
 
{{:MUMPS/Operator_integer_divided_by|integer divided by <nowiki>(\)</nowiki>}}
 
{{:MUMPS/Operator_modulo|modulo <nowiki>(#)</nowiki>}}
 
{{:MUMPS/Operator_to_the_power_of|to the power of <nowiki>(**)</nowiki>}}
 
{{:MUMPS/Operator_concatenate|concatenate <nowiki>(_)</nowiki>}}
 
{{:MUMPS/Operator_becomes|_becomes <nowiki>(=)</nowiki>}}
 
{{:MUMPS/Operator_is_equal_to|is equal to <nowiki>(=)</nowiki>}}
 
{{:MUMPS/Operator_object_is_equal_to|object is equal to <nowiki>(==)</nowiki>}}
 
{{:MUMPS/Operator_is_greater_than|is greater than <nowiki>(&gt;)</nowiki>}}
 
{{:MUMPS/Operator_is_less_than|is less than <nowiki>(&lt;)</nowiki>}}
 
{{:MUMPS/Operator_is_less_than_or_equal_to|is less than or equal to <nowiki>('&gt;, &lt;=)</nowiki>}}
 
{{:MUMPS/Operator_is_greater_than_or_equal_to|is greater than or equal to <nowiki>('&lt;, &gt;=)</nowiki>}}
 
{{:MUMPS/Operator_matches_pattern|matches pattern <nowiki>(?)</nowiki>}}
 
{{:MUMPS/Operator_contains|contains <nowiki>([)</nowiki>}}
 
{{:MUMPS/Operator_follows|follows <nowiki>(])</nowiki>}}
 
{{:MUMPS/Operator_follows or is equal to|follows or is equal to <nowiki>(]=)</nowiki>}}
 
{{:MUMPS/Operator_collates after|collates after <nowiki>(]])</nowiki>}}
 
{{:MUMPS/Operator_collates after or is equal to|collates after or is equal to <nowiki>(]]=)</nowiki>}}
 
{{:MUMPS/Operator_and|and <nowiki>(&amp;)</nowiki>}}
 
{{:MUMPS/Operator_or|or <nowiki>(!)</nowiki>}}
 
{{:MUMPS/Operator_exclusive_or|exclusive or <nowiki>(!!)</nowiki>}}
 
{{:MUMPS/Operator_not|not <nowiki>(')</nowiki>}}
 
{{:MUMPS/Operator_indirect|indirect <nowiki>(@)</nowiki>}}
 
 
 
== (Intrinsic) Special_Variables svn ==
 
{{:MUMPS/Special_Variable_A}}
 
{{:MUMPS/Special_Variable_B}}
 
{{:MUMPS/Special_Variable_C}}
 
{{:MUMPS/Special_Variable_D}}
 
{{:MUMPS/Special_Variable_E}}
 
{{:MUMPS/Special_Variable_F}}
 
{{:MUMPS/Special_Variable_G}}
 
{{:MUMPS/Special_Variable_H}}
 
{{:MUMPS/Special_Variable_I}}
 
{{:MUMPS/Special_Variable_J}}
 
{{:MUMPS/Special_Variable_K}}
 
{{:MUMPS/Special_Variable_L}}
 
{{:MUMPS/Special_Variable_M}}
 
{{:MUMPS/Special_Variable_N}}
 
{{:MUMPS/Special_Variable_O}}
 
{{:MUMPS/Special_Variable_P}}
 
{{:MUMPS/Special_Variable_Q}}
 
{{:MUMPS/Special_Variable_R}}
 
{{:MUMPS/Special_Variable_S}}
 
{{:MUMPS/Special_Variable_T}}
 
{{:MUMPS/Special_Variable_U}}
 
{{:MUMPS/Special_Variable_V}}
 
{{:MUMPS/Special_Variable_W}}
 
{{:MUMPS/Special_Variable_X}}
 
{{:MUMPS/Special_Variable_Y}}
 
{{:MUMPS/Special_Variable_Z}}
 
 
 
== Functions ==
 
{{:MUMPS/Function_A}}
 
{{:MUMPS/Function_B}}
 
{{:MUMPS/Function_C}}
 
{{:MUMPS/Function_D}}
 
{{:MUMPS/Function_E}}
 
{{:MUMPS/Function_F}}
 
{{:MUMPS/Function_G}}
 
{{:MUMPS/Function_H}}
 
{{:MUMPS/Function_I}}
 
{{:MUMPS/Function_J}}
 
{{:MUMPS/Function_K}}
 
{{:MUMPS/Function_L}}
 
{{:MUMPS/Function_M}}
 
{{:MUMPS/Function_N}}
 
{{:MUMPS/Function_O}}
 
{{:MUMPS/Function_P}}
 
{{:MUMPS/Function_Q}}
 
{{:MUMPS/Function_R}}
 
{{:MUMPS/Function_S}}
 
{{:MUMPS/Function_T}}
 
{{:MUMPS/Function_U}}
 
{{:MUMPS/Function_V}}
 
{{:MUMPS/Function_W}}
 
{{:MUMPS/Function_X}}
 
{{:MUMPS/Function_Y}}
 
{{:MUMPS/Function_Z}}
 

Latest revision as of 17:06, 8 February 2021