Index     Project     Documentation

add
 
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


aload
 
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.


astore
 
Signature(s):
any1 anyn astore => array

Description:
  Stores all of the operand stack elements into an array.


clear
 
Signature(s):
none clear => none

Description:
  Clears the operand stack.


count
 
Signature(s):
none count => number

Description:
  Returns the length of the operand stack.

Examples:
1.0 2.0 3.0 count => 3.0 3.0 2.0 1.0


debug_dump
 
Signature(s):
none debug_dump => none

Description:
  Dumps debugging information to STDOUT.


debug_opstack
 
Signature(s):
none debug_opstack => none

Description:
  Dumps operand stack debugging information to STDOUT.


def
 
Signature(s):
string any def => none

Description:
  Sets or adds an entry in the user diction for the name to the value specified.


div
 
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


dump
 
Signature(s):
any dump => string

Description:
  Converts the top operand into a string and pushes it onto the stack.


dup
 
Signature(s):
any dup => any any

Description:
  Duplicates the top item on the stack.

Examples:
1.0 dup => 1.0 1.0
"b" dup => "b" "b"


eq
 
Signature(s):
any any eq => bool

Description:
  Returns true if the two objects are identical.


exch
 
Signature(s):
any any exch => any any

Description:
  Swaps the top two operands.


exec
 
Signature(s):
any exec => none

Description:
  Executes the first object on the operand stack.


exit
 
Signature(s):
none exit => none

Description:
  Sets the exit flag on the current loop. Looping will terminate when the execution reaches the loop point.


false
 
Description:
  The 'false' constant.


forall
 
Signature(s):
array proc forall => none

Description:
  Iterates all of the items of an array against an executable array.


ge
 
Signature(s):
number number ge => bool

Description:
  Returns true if the first operand is greater than or equal to the second.


get
 
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.


gets
 
Signature(s):
none gets => string

Description:
  Gets a string from STDIN and pushes it on the stack.


gt
 
Signature(s):
number number gt => bool

Description:
  Returns true if the first operand is greater than the second.


if
 
Signature(s):
bool proc if => none

Description:
  Runs the executable array if the boolean is true.


ifelse
 
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.


keys
 
Signature(s):
dict keys => array

Description:
  Pushes an array of the keys of the hash into the operand stack.


le
 
Signature(s):
number number le => bool

Description:
  Returns true if the first operand is less than or equal to the second.


length
 
Signature(s):
array length => length
string length => length
dict length => key_count

Description:
  Pushes the length of the object onto the operand stack.


loop
 
Signature(s):
proc loop => none

Description:
  Loops around an executable array until exit is invoked.


lt
 
Signature(s):
number number lt => bool

Description:
  Returns true if the first operand is less than the second.


mul
 
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


not
 
Signature(s):
bool not => none

Description:
  Inverts the top operand.


pop
 
Signature(s):
any pop => none

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


print
 
Signature(s):
any print => none

Description:
  Prints the top operand to STDOUT.


put
 
Signature(s):
dict key value put => -
array index value put => -

Description:
  Sets the value at the specified index (or key) to the specified value.


ripley_version
 
Description:
  The version number of the Ripley Interpreter.


roll
 
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"


sub
 
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


token
 
Signature(s):
string token => none

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.


true
 
Description:
  The 'true' constant.




Copyright (©) 2003, Jack D. Herrington, All Rights Reserved