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 | Class and Description |
---|---|
class |
Code
This class represents a specialization of List for code that gets
loaded in from a file, or simply parsed from a String, in either
case it will have a line number associated with it.
|
class |
Environment
Representation of a lexical environment.
|
Modifier and Type | Field and Description |
---|---|
protected List |
List.cdr
The cdr, or rest, of this list.
|
Modifier and Type | Method and Description |
---|---|
static List |
List.array2List(java.lang.Object obj) |
List |
List.cddr()
The cdr of the cdr of this list.
|
List |
List.cdr()
The ubiquitous Lisp/Scheme cdr accessor.
|
List |
FormError.getForm() |
static List |
List.list()
A static convenience method, that creates new empty lists.
|
static List |
List.list(java.lang.Object o1)
A static convenience method, that creates a new singleton list.
|
static List |
List.list(java.lang.Object o1,
java.lang.Object o2)
A static convenience method, that creates a new list with two elements.
|
static List |
List.list(java.lang.Object a,
java.lang.Object b,
java.lang.Object c)
A static convenience method, that creates a new list with two elements.
|
protected List |
List.snoc(java.util.Iterator<?> iter)
Adds the contents of the Iterator object destructively onto the end of
this list.
|
protected List |
List.snoc(java.lang.Object obj)
Destructively updates this, which must be an empty list, so that
it's car in the obj passed in, and it's cdr is a new empty list.
|
protected List |
List.snoc(java.lang.Object[] array)
Adds the contents of the array of Objects destructively onto the end of
this list.
|
Modifier and Type | Method and Description |
---|---|
static void |
Code.augmentCell(List in,
List out) |
static void |
Code.augmentSpine(int n,
List in,
List out) |
static void |
Code.augmentSpine(List in,
List out) |
java.lang.Object |
Interpreter.evaluate(List description) |
static java.lang.Object |
Evaluate.evaluate(List description) |
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) |
Constructor and Description |
---|
ForCont(List form,
java.lang.String formId,
List args,
Environment env,
g2d.jlambda.Continuation k) |
FormError(java.lang.String s,
List f) |
List(java.lang.Object car,
List cdr)
Adds a new element onto an existing list.
|