|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.expr.Language gnu.kawa.lispexpr.LispLanguage kawa.standard.Scheme
public class Scheme
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
|
Fields inherited from class gnu.kawa.lispexpr.LispLanguage |
---|
defaultReadTable, lookup_sym, quasiquote_sym, quote_sym, unquote_sym, unquotesplicing_sym |
Fields inherited from class gnu.expr.Language |
---|
current, env_counter, environ, FUNCTION_NAMESPACE, NAMESPACE_PREFIX_NAMESPACE, PARSE_IMMEDIATE, PARSE_ONE_LINE, PARSE_PROLOG, requirePedantic, userEnv, VALUE_NAMESPACE |
Constructor Summary | |
---|---|
|
Scheme()
|
protected |
Scheme(Environment env)
|
Method Summary | |
---|---|
static Environment |
builtin()
|
ReadTable |
createReadTable()
Create a fresh ReadTable appropriate for this language. |
static java.lang.Object |
eval(InPort port,
Environment env)
Evalutate Scheme expressions from stream. |
static java.lang.Object |
eval(java.lang.Object sexpr,
Environment env)
Evalutate Scheme expressions from an "S expression." |
static java.lang.Object |
eval(java.lang.String string,
Environment env)
Evalutate Scheme expressions from string. |
static Type |
exp2Type(Expression exp)
Convert expression to a Type. |
AbstractFormat |
getFormat(boolean readable)
|
static Scheme |
getInstance()
|
java.lang.String |
getName()
|
static Type |
getNamedType(java.lang.String name)
|
int |
getNamespaceOf(Declaration decl)
Return the namespace (e.g value or function) of a Declaration. |
Type |
getTypeFor(java.lang.Class clas)
|
Type |
getTypeFor(java.lang.String name)
|
static Type |
getTypeValue(Expression exp)
If exp is a "constant" Type, return that type, otherwise return null. |
NamedLocation |
lookupBuiltin(Symbol name,
java.lang.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(java.lang.String name)
|
Methods inherited from class gnu.kawa.lispexpr.LispLanguage |
---|
declFromField, defSntxStFld, defSntxStFld, fromLangSymbol, getCompilation, getLexer, langSymbolToSymbol, makeBody, parse, resolve, selfEvaluatingSymbol |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Environment nullEnvironment
public static final Environment r4Environment
public static final Environment r5Environment
protected static final SimpleEnvironment kawaEnvironment
public static LangPrimType booleanType
public static final Scheme instance
public static final InstanceOf instanceOf
public static final not not
public static final map map
public static final map forEach
public static final IsEq isEq
public static final IsEqv isEqv
public static final IsEqual isEqual
public static final repl repl
public static final NumberCompare numEqu
public static final NumberCompare numGrt
public static final NumberCompare numGEq
public static final NumberCompare numLss
public static final NumberCompare numLEq
public static final ApplyToArgs applyToArgs
public static final Declaration getNamedPartDecl
public static final Lambda lambda
public static final AbstractFormat writeFormat
public static final AbstractFormat displayFormat
Constructor Detail |
---|
public Scheme()
protected Scheme(Environment env)
Method Detail |
---|
public static Scheme getInstance()
public static Environment builtin()
public java.lang.String getName()
getName
in class Language
public NamedLocation lookupBuiltin(Symbol name, java.lang.Object property, int hash)
lookupBuiltin
in class Language
public static java.lang.Object eval(java.lang.String string, Environment env)
string
- the string constaining Scheme expressionsenv
- the Environment to evaluate the string in
public static java.lang.Object eval(InPort port, Environment env)
port
- the port to read Scheme expressions fromenv
- the Environment to evaluate the string in
public static java.lang.Object eval(java.lang.Object sexpr, Environment env)
sexpr
- the S expression to evaluateenv
- the Environment to evaluate the string in
public AbstractFormat getFormat(boolean readable)
getFormat
in class Language
public int getNamespaceOf(Declaration decl)
Language
getNamespaceOf
in class Language
public static Type getTypeValue(Expression exp)
public static Type getNamedType(java.lang.String name)
public Type getTypeFor(java.lang.Class clas)
getTypeFor
in class Language
public static Type string2Type(java.lang.String name)
public Type getTypeFor(java.lang.String name)
getTypeFor
in class Language
public static Type exp2Type(Expression exp)
public Expression makeApply(Expression func, Expression[] args)
makeApply
in class LispLanguage
public ReadTable createReadTable()
LispLanguage
ReadTable
appropriate for this language.
createReadTable
in class LispLanguage
public static void registerEnvironment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |