Command Line Syntax

From OSUPDOCS
Revision as of 14:15, 29 August 2013 by Nairnj (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
  1. A line beginning in any valid command.
  2. The command may be followed by any number of arguments appropriate for the command.
  3. 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 <a href="expression.html#expr">expression</a>.
  4. The line can be followed by an optional comment which is started by an exclamation point

Variable Assignments

#var = <a href="expression.html#expr"><code>expression</code></a>                ! comment
#var[<a href="expression.html#expr"><code>expression</code></a>] = <a href="expression.html#expr"><code>expression</code></a>      ! comment
  1. A line beginning in #var where var is any valid <a href="expression.html">variable</a> name.
  2. The #var name must be followed by assignment operator ("=&quot, "+=&quot, etc.) and an <a href="expression.html#expr">expression</a>. The variable is set equal to the result of expression and the assignment operator.
  3. The line can be followed by an optional comment which is started by an exclamation point
  4. Any valid <a href="expression.html">variable</a> name can be an array variable by following it with square brackets enclosing an <a href="expression.html#expr">expression</a> that evaluates to an index into the array.

Comment Line

! comments
  1. Lines beginning in an exclamation point are ignored and can be used for comments.
  2. Blank lines are also ignored and can be used to improve readability of input command files.