Difference between revisions of "Command Line Syntax"
Jump to navigation
Jump to search
(Created page with "The interpretive scripting language for NairnFEAMPM and NairnFEAMPMViz is made up of a series of command lines. The syntax of these lines is described below. == Com...") |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The interpretive scripting language for [[NairnFEAMPM]] and [[NairnFEAMPMViz]] is made up of a series of command lines. The syntax of these lines is described below. | The interpretive [[Scripting Language Syntax|scripting language]] for [[NairnFEAMPM]] and [[NairnFEAMPMViz]] is made up of a series of command lines. The syntax of these lines is described below. | ||
__TOC__ | |||
== Command Line == | == Command Line == | ||
Command #1,#2,#3,... ! comment | Command #1,#2,#3,... ! comment | ||
# A line beginning in any valid command. | |||
# The command may be followed by a space and then by any number of arguments 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 Syntax|expression]]. In [[NairnFEAMPMViz]], arguments must be separated by commas. | |||
# The line can be followed by an optional comment which is started by an exclamation point. | |||
== Variable Assignments == | == Variable Assignments == | ||
#var = expression ! comment | |||
#var[ | #var[expression] = expression ! comment | ||
<ol> | <ol> | ||
<li>A line beginning in < | <li>A line beginning in <tt>#var</tt> where <tt>var</tt> is any valid [[Variable Names|variable name]].</li> | ||
<li>The < | <li>The <tt>#var</tt> name must be followed by assignment operator (=, +=, <i>etc.</i>) and an [[Expression Syntax|expression]]. The variable is set equal to the result of <tt>expression</tt> and the assignment operator.</li> | ||
<li>The line can be followed by an optional comment which is started by an exclamation point | <li>The line can be followed by an optional comment which is started by an exclamation point | ||
</li> | </li> | ||
<li> | <li>The variable assigned can be an [[Variable Names#Variable Arrays|array variable]].</li> | ||
</ol> | </ol> | ||
Line 31: | Line 27: | ||
! comments | ! 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. | |||
Latest revision as of 10:31, 3 September 2013
The interpretive scripting language for NairnFEAMPM and NairnFEAMPMViz is made up of a series of command lines. The syntax of these lines is described below.
Command Line
Command #1,#2,#3,... ! comment
- A line beginning in any valid command.
- The command may be followed by a space and then by any number of arguments 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. In NairnFEAMPMViz, arguments must be separated by commas.
- 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
- The variable assigned can be an array variable.
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.