Package | Description |
---|---|
g2d.jlambda |
This package contains a Scheme-like CPS (continuation passing style) interpreter for JLambda,
the programmer's manual for the JLambda language can be downloaded from here:
[pdf].
|
Modifier and Type | Method and Description |
---|---|
Environment |
Environment.extend(java.lang.Object val) |
Environment |
Environment.extend(java.lang.Object[] vals) |
protected Environment |
Closure.getEnv()
Returns the closure's environment.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
Interpreter.evaluate(java.lang.Object form,
Environment env) |
static java.lang.Object |
Evaluate.evaluate(java.lang.Object form,
Environment env) |
static java.lang.Boolean |
Evaluate.evaluateBoolean(List body,
Environment env) |
static java.lang.Byte |
Evaluate.evaluateByte(List body,
Environment env) |
static java.lang.Character |
Evaluate.evaluateChar(List body,
Environment env) |
static java.lang.Double |
Evaluate.evaluateDouble(List body,
Environment env) |
static java.lang.Float |
Evaluate.evaluateFloat(List body,
Environment env) |
static java.lang.Integer |
Evaluate.evaluateInt(List body,
Environment env) |
static java.lang.Long |
Evaluate.evaluateLong(List body,
Environment env) |
static java.lang.Short |
Evaluate.evaluateShort(List body,
Environment env) |
protected java.lang.Object |
Interpreter.evaluateString(java.lang.String str,
Environment env,
g2d.jlambda.Continuation k) |
static java.lang.Object |
Evaluate.evaluateString(java.lang.String str,
Environment env,
g2d.jlambda.Continuation k) |
Constructor and Description |
---|
Closure(int arity,
java.lang.Object body,
Environment env,
g2d.jlambda.Continuation k,
Interpreter engine)
Constructs a Closure object.
|
Environment(g2d.jlambda.EnvFrame frame,
Environment cdr) |
Environment(java.lang.Object[] vals,
Environment cdr) |
ForCont(List form,
java.lang.String formId,
List args,
Environment env,
g2d.jlambda.Continuation k) |