kawa.standard
public class Scheme extends LispLanguage
Field Summary | |
---|---|
static ApplyToArgs | applyToArgs |
static LangPrimType | booleanType |
static AbstractFormat | displayFormat |
static map | forEach |
static Declaration | getNamedPartDecl |
static Scheme | instance |
static InstanceOf | instanceOf |
static IsEq | isEq |
static IsEqual | isEqual |
static IsEqv | isEqv |
protected static SimpleEnvironment | kawaEnvironment |
static Lambda | lambda |
static map | map |
static not | not |
static Environment | nullEnvironment |
static NumberCompare | numEqu |
static NumberCompare | numGEq |
static NumberCompare | numGrt |
static NumberCompare | numLEq |
static NumberCompare | numLss |
static Environment | r4Environment |
static Environment | r5Environment |
static repl | repl |
static AbstractFormat | writeFormat |
Constructor Summary | |
---|---|
Scheme() | |
protected | Scheme(Environment env) |
Method Summary | |
---|---|
static Environment | builtin() |
ReadTable | createReadTable() |
static Object | eval(String string, Environment env) Evalutate Scheme expressions from string. |
static Object | eval(InPort port, Environment env) Evalutate Scheme expressions from stream. |
static Object | eval(Object sexpr, Environment env) Evalutate Scheme expressions from an "S expression." |
static Type | exp2Type(Expression exp) Convert expression to a Type.
|
AbstractFormat | getFormat(boolean readable) |
static Scheme | getInstance() |
String | getName() |
static Type | getNamedType(String name) |
int | getNamespaceOf(Declaration decl) |
Type | getTypeFor(Class clas) |
Type | getTypeFor(String name) |
static Type | getTypeValue(Expression exp) If exp is a "constant" Type, return that type, otherwise return null. |
NamedLocation | lookupBuiltin(Symbol name, Object property, int hash) |
Expression | makeApply(Expression func, Expression[] args) |
static void | registerEnvironment() The compiler insert calls to this method for applications and applets. |
static Type | string2Type(String name) |
Parameters: string the string constaining Scheme expressions env the Environment to evaluate the string in
Returns: result of last expression, or Language.voidObject if none.
Parameters: port the port to read Scheme expressions from env the Environment to evaluate the string in
Returns: result of last expression, or Language.voidObject if none.
Parameters: sexpr the S expression to evaluate env the Environment to evaluate the string in
Returns: result of the expression.