|
Signature(s):
number number add |
=> |
number |
|
Description:
|
Returns the second operand added to the first operand. |
Examples:
3.0 2.0 add |
=> |
5.0 |
4.0 2.0 add |
=> |
6.0 |
|
|
|
Signature(s):
array aload |
=> |
any1 anyn array |
|
Description:
|
Pushes all of the items on the array onto the operand stack, then pushes the array onto the operand stack. |
|
|
Signature(s):
any1 anyn astore |
=> |
array |
|
Description:
|
Stores all of the operand stack elements into an array. |
|
|
Signature(s):
Description:
|
Clears the operand stack. |
|
|
Signature(s):
Description:
|
Returns the length of the operand stack. |
Examples:
1.0 2.0 3.0 count |
=> |
3.0 3.0 2.0 1.0 |
|
|
|
Signature(s):
Description:
|
Dumps debugging information to STDOUT. |
|
|
Signature(s):
none debug_opstack |
=> |
none |
|
Description:
|
Dumps operand stack debugging information to STDOUT. |
|
|
Signature(s):
Description:
|
Sets or adds an entry in the user diction for the name to the value specified. |
|
|
Signature(s):
number number div |
=> |
number |
|
Description:
|
Returns the first operand divided by the second. |
Examples:
3.0 2.0 div |
=> |
1.5 |
4.0 2.0 div |
=> |
2.0 |
|
|
|
Signature(s):
Description:
|
Converts the top operand into a string and pushes it onto the stack. |
|
|
Signature(s):
Description:
|
Duplicates the top item on the stack. |
Examples:
1.0 dup |
=> |
1.0 1.0 |
"b" dup |
=> |
"b" "b" |
|
|
|
Signature(s):
Description:
|
Returns true if the two objects are identical. |
|
|
Signature(s):
Description:
|
Swaps the top two operands. |
|
|
Signature(s):
Description:
|
Executes the first object on the operand stack. |
|
|
Signature(s):
Description:
|
Sets the exit flag on the current loop. Looping will terminate when the execution reaches the loop point. |
|
|
Signature(s):
array proc forall |
=> |
none |
|
Description:
|
Iterates all of the items of an array against an executable array. |
|
|
Signature(s):
Description:
|
Returns true if the first operand is greater than or equal to the second. |
|
|
Signature(s):
array index get |
=> |
any |
dict key get |
=> |
any |
|
Description:
|
For arrays this gets the item at the index specified and puts it on the stack. For keys this gets the item at the specified key. |
|
|
Signature(s):
Description:
|
Gets a string from STDIN and pushes it on the stack. |
|
|
Signature(s):
Description:
|
Returns true if the first operand is greater than the second. |
|
|
Signature(s):
Description:
|
Runs the executable array if the boolean is true. |
|
|
Signature(s):
bool proc proc ifelse |
=> |
none |
|
Description:
|
If the boolean is true then the positive executable array is invoked, otherwise the negative executable array is invoked. |
|
|
Signature(s):
Description:
|
Pushes an array of the keys of the hash into the operand stack. |
|
|
Signature(s):
Description:
|
Returns true if the first operand is less than or equal to the second. |
|
|
Signature(s):
array length |
=> |
length |
string length |
=> |
length |
dict length |
=> |
key_count |
|
Description:
|
Pushes the length of the object onto the operand stack. |
|
|
Signature(s):
Description:
|
Loops around an executable array until exit is invoked. |
|
|
Signature(s):
Description:
|
Returns true if the first operand is less than the second. |
|
|
Signature(s):
number number mul |
=> |
number |
|
Description:
|
Returns the first operand multiplied by the second. |
Examples:
3.0 2.0 mul |
=> |
6.0 |
4.0 2.0 mul |
=> |
8.0 |
|
|
|
Signature(s):
Description:
|
|
Signature(s):
Description:
|
Pops the first item off the stack. |
Examples:
1.0 2.0 pop |
=> |
1.0 |
1.0 2.0 3.0 pop |
=> |
2.0 1.0 |
|
|
|
Signature(s):
Description:
|
Prints the top operand to STDOUT. |
|
|
Signature(s):
dict key value put |
=> |
- |
array index value put |
=> |
- |
|
Description:
|
Sets the value at the specified index (or key) to the specified value. |
|
|
Description:
|
The version number of the Ripley Interpreter. |
|
|
Signature(s):
any1 anyn n j roll |
=> |
any1 anyn |
|
Description:
|
Rolls 'n' items on the stack in 'd' direction. |
Examples:
"a" "b" "c" 3 -1 roll |
=> |
"b" "c" "a" |
"a" "b" "c" 3 1 roll |
=> |
"c" "a" "b" |
"a" "b" "c" 3 0 roll |
=> |
"a" "b" "c" |
|
|
|
Signature(s):
number number sub |
=> |
number |
|
Description:
|
Returns the second operand subtracted from the first operand. |
Examples:
3.0 2.0 sub |
=> |
1.0 |
4.0 2.0 sub |
=> |
2.0 |
|
|
|
Signature(s):
Description:
|
Takes a string as input and parses the Ripley code in the string. The resulting output is put into the operand stack as an executable array. |
|
Copyright (©) 2003, Jack D. Herrington, All Rights Reserved
|
|