1.3. Command Set¶
1.3.1. Constant creation¶
C(name) |
Defines a constant with the given name.
Returns a descriptor of type |
CV(name, n) |
Defines a vector of constants with names: \(name[0], name[1], ..., name[n-1]\).
Returns a descriptor of type |
V([name]) |
Defines an empty vector.
Optional parameter \(name\) assigns a name to the vector.
Returns a descriptor of type |
F(name[,i]) |
Finds a descriptor with the given name.
Optional parameter \(i\) is an integer.
\(name\) should refer to a descriptor of type |
1.3.2. Real-valued field usage and declaration¶
N(field, v) |
If is the first use of the parameter field it declares a new real-valued numeric field.
Generates a descriptor for the value v of the numeric field field.
Returns a descriptors of type |
1.3.3. Duple creation¶
INC(l, h) |
Defines a positive duple \(l \leq h\).
\(l\) and \(h\) are descriptors or descriptor names of any type except type |
EXC(l, h) |
Defines a negative duple \(l \nleq h\).
\(l\) and \(h\) are descriptors or descriptor names of any type except type |
1.3.4. Term formation and manipulation¶
The arguments \(p_i\) in the following commands are descriptors or the names assigned to descriptors.
M(p[, …]) |
Calculates an idempotent summation.
The argument or arguments \(p\) are descriptors of any type except of type |
APP(p, pa) |
Appends pa to \(p\).
Argument \(p\) should be of type |
R(p, pr) |
Removes \(pr\) from a copy of the vector \(p\).
If argument \(pr\) is an integer, removes the \(pr-th\) component.
Argument \(p\) is not modified.
Argument \(p\) is of type |
CMP(p1, p2) |
Declares \(p1\) and \(p2\) as the logical negation of each other.
\(p1\), \(p2\) are of type |
CMP(p) |
Finds or calculates a descriptor that is the complementary of p.
\(p\) is a descriptor of type |
T(p[, i]) |
Associates an iterator to \(p\).
The argument \(p\) is of any type except |
1.3.5. Auxiliary commands¶
HEADER(name) |
Guards a section of the program that should be read just once. Returns \(True\) when \(HEADER(name)\) has not been read yet. |
SOME(p, prob[, atLeastOne, notAll]) |
Randomly chooses items with a probability \(prob\).
Default values for optional parameters are \(False\).
Boolean parameter:math: atLeastOne ensures at least one item is selected.
Boolean parameter:math: notAll makes sure not all the items are selected.
The argument:math: p is a descriptor, or the name assigned to a descriptor, of type |
REGION(n) |
Assignes duples defined after the statement to region \(n\), where:math: n is a positive integer.
The default region is 0.
The assigned value remains unaltered until |
1.3.6. Additional commands for unmanaged base languages¶
^p |
Prevents the deletion of a descriptor p. |
/p |
Returns the memory of a preserved descriptor \(^p\). |