Main Help →
All Commands →
Language Reference →
Syntax
Command Line Syntax
The interpretive NairnFEAMPM language is made up of a series of command lines. Each line is a command and the possible types of commands are:
Command Line
Command #1,#2,#3,... ! comment
- A line beginning in any NairnFEAMPM or language control command.
- The command may be followed by any number of arguments appropriate for the command.
- Arguments are separated by white space or a comma. If an argument contains white space or commas (such as string arguments), enclose the argument in quotes. Any argument can be an expression.
- The line can be followed by an optional comment which is started by an exclamation point
Variable Assignments
#var = expression
! comment
#var[expression
] = expression
! comment
- A line beginning in
#var
where var
is any valid variable name.
- The
#var
name must be followed by assignment operator ("=", "+=', etc.) and an expression. The variable is set equal to the result of expression and the assignment operator.
- The line can be followed by an optional comment which is started by an exclamation point
- Any valid variable name can be an array variable by following it with square brackets enclosing an expression that evaluates to an index into the array.
Comment Line
! comments
- Lines beginning in an exclamation point are ignored and can be used for comments.
- Blank lines are also ignored and can be used to improve readability of input command files.