C# Class CSScheme.Primitive

Inheritance: Procedure
Show file Open project: jackpal/Dandy-Dungeon

Public Methods

Method Description
Primitive ( int id, int minArgs, int maxArgs ) : System
apply ( Scheme interp, Object args ) : Object
charCompare ( Object x, Object y, bool ci ) : int
installPrimitives ( Environment env ) : Environment
memberAssoc ( Object obj, Object list, char m, char eq ) : Object
numCompare ( Object args, char op ) : Object
numCompute ( Object args, char op, double result ) : Object
stringAppend ( Object args ) : char[]
stringCompare ( Object x, Object y, bool ci ) : int

Private Methods

Method Description
append ( Object args ) : Object
append2 ( Object x, Object y ) : Object
gcd ( Object args ) : Object
gcd2 ( long a, long b ) : long
isExact ( Object x ) : bool
isList ( Object x ) : bool
lcm ( Object args ) : Object
map ( Procedure proc, Object args, Scheme interp, Pair result ) : Pair
numberToString ( Object x, Object y ) : Object
openInputFile ( Object filename ) : InputPort
openOutputFile ( Object filename ) : TextWriter
sign ( int x ) : int
stringToNumber ( Object x, Object y ) : Object

Method Details

Primitive() public method

public Primitive ( int id, int minArgs, int maxArgs ) : System
id int
minArgs int
maxArgs int
return System

apply() public method

public apply ( Scheme interp, Object args ) : Object
interp Scheme
args Object
return Object

charCompare() public static method

public static charCompare ( Object x, Object y, bool ci ) : int
x Object
y Object
ci bool
return int

installPrimitives() public static method

public static installPrimitives ( Environment env ) : Environment
env Environment
return Environment

memberAssoc() public static method

public static memberAssoc ( Object obj, Object list, char m, char eq ) : Object
obj Object
list Object
m char
eq char
return Object

numCompare() public static method

public static numCompare ( Object args, char op ) : Object
args Object
op char
return Object

numCompute() public static method

public static numCompute ( Object args, char op, double result ) : Object
args Object
op char
result double
return Object

stringAppend() public static method

public static stringAppend ( Object args ) : char[]
args Object
return char[]

stringCompare() public static method

public static stringCompare ( Object x, Object y, bool ci ) : int
x Object
y Object
ci bool
return int