| gnu.expr.Language gnu.kawa.lispexpr.LispLanguage kawa.standard.Scheme
All known Subclasses: gnu.kawa.brl.BRL, gnu.q2.lang.Q2,
Method Summary | |
public static Environment | builtin() | public ReadTable | createReadTable() | public static Object | eval(String string, Environment env) Evalutate Scheme expressions from string.
Parameters: string - the string constaining Scheme expressions Parameters: env - the Environment to evaluate the string in result of last expression, or Language.voidObject if none. | public static Object | eval(InPort port, Environment env) Evalutate Scheme expressions from stream.
Parameters: port - the port to read Scheme expressions from Parameters: env - the Environment to evaluate the string in result of last expression, or Language.voidObject if none. | public static Object | eval(Object sexpr, Environment env) Evalutate Scheme expressions from an "S expression."
Parameters: sexpr - the S expression to evaluate Parameters: env - the Environment to evaluate the string in result of the expression. | public static Type | exp2Type(Expression exp) Convert expression to a Type. | public AbstractFormat | getFormat(boolean readable) | public static Scheme | getInstance() | public String | getName() | public static Type | getNamedType(String name) | public int | getNamespaceOf(Declaration decl) | public Type | getTypeFor(Class clas) | public Type | getTypeFor(String name) | public static Type | getTypeValue(Expression exp) If exp is a "constant" Type, return that type, otherwise return null. | public NamedLocation | lookupBuiltin(Symbol name, Object property, int hash) | public Expression | makeApply(Expression func, Expression[] args) | public static void | registerEnvironment() The compiler insert calls to this method for applications and applets. | public static Type | string2Type(String name) |
eval | public static Object eval(String string, Environment env)(Code) | | Evalutate Scheme expressions from string.
Parameters: string - the string constaining Scheme expressions Parameters: env - the Environment to evaluate the string in result of last expression, or Language.voidObject if none. |
eval | public static Object eval(InPort port, Environment env)(Code) | | Evalutate Scheme expressions from stream.
Parameters: port - the port to read Scheme expressions from Parameters: env - the Environment to evaluate the string in result of last expression, or Language.voidObject if none. |
eval | public static Object eval(Object sexpr, Environment env)(Code) | | Evalutate Scheme expressions from an "S expression."
Parameters: sexpr - the S expression to evaluate Parameters: env - the Environment to evaluate the string in result of the expression. |
exp2Type | public static Type exp2Type(Expression exp)(Code) | | Convert expression to a Type.
Allow "TYPE" or 'TYPE or .
|
getTypeValue | public static Type getTypeValue(Expression exp)(Code) | | If exp is a "constant" Type, return that type, otherwise return null.
|
registerEnvironment | public static void registerEnvironment()(Code) | | The compiler insert calls to this method for applications and applets.
|
Methods inherited from gnu.kawa.lispexpr.LispLanguage | abstract public ReadTable createReadTable()(Code)(Java Doc) public Declaration declFromField(ModuleExp mod, Object fvalue, Field fld)(Code)(Java Doc) protected void defSntxStFld(String name, String cname, String fname)(Code)(Java Doc) protected void defSntxStFld(String name, String cname)(Code)(Java Doc) protected Symbol fromLangSymbol(Object sym)(Code)(Java Doc) public Compilation getCompilation(Lexer lexer, SourceMessages messages)(Code)(Java Doc) public Lexer getLexer(InPort inp, SourceMessages messages)(Code)(Java Doc) public static Symbol langSymbolToSymbol(Object sym)(Code)(Java Doc) public Expression makeApply(Expression func, Expression[] args)(Code)(Java Doc) public Expression makeBody(Expression[] exps)(Code)(Java Doc) public boolean parse(Compilation comp, int options) throws java.io.IOException, gnu.text.SyntaxException(Code)(Java Doc) public void resolve(Compilation comp)(Code)(Java Doc) public boolean selfEvaluatingSymbol(Object obj)(Code)(Java Doc)
|
Methods inherited from gnu.expr.Language | final public Type asType(Object spec)(Code)(Java Doc) public Object booleanObject(boolean b)(Code)(Java Doc) public Object coerceFromObject(Class clas, Object obj)(Code)(Java Doc) public Object coerceToObject(Class clas, Object obj)(Code)(Java Doc) public Object coerceToObject(int val)(Code)(Java Doc) public Declaration declFromField(ModuleExp mod, Object fvalue, Field fld)(Code)(Java Doc) protected void defAliasStFld(String name, String cname, String fname)(Code)(Java Doc) protected void defProcStFld(String name, String cname, String fname)(Code)(Java Doc) protected void defProcStFld(String name, String cname)(Code)(Java Doc) public void define(String sym, Object p)(Code)(Java Doc) final public void defineFunction(Named proc)(Code)(Java Doc) public void defineFunction(String name, Object proc)(Code)(Java Doc) public static Language detect(InputStream in) throws IOException(Code)(Java Doc) public static Language detect(InPort port) throws IOException(Code)(Java Doc) public static Language detect(String line)(Code)(Java Doc) public void emitCoerceToBoolean(CodeAttr code)(Code)(Java Doc) public void emitPushBoolean(boolean value, CodeAttr code)(Code)(Java Doc) final public Object eval(String string) throws Throwable(Code)(Java Doc) final public Object eval(Reader in) throws Throwable(Code)(Java Doc) final public Object eval(InPort port) throws Throwable(Code)(Java Doc) final public void eval(String string, Writer out) throws Throwable(Code)(Java Doc) final public void eval(String string, PrintConsumer out) throws Throwable(Code)(Java Doc) final public void eval(String string, Consumer out) throws Throwable(Code)(Java Doc) final public void eval(Reader in, Writer out) throws Throwable(Code)(Java Doc) public void eval(Reader in, Consumer out) throws Throwable(Code)(Java Doc) public void eval(InPort port, CallContext ctx) throws Throwable(Code)(Java Doc) public String formatType(Type type)(Code)(Java Doc) public Compilation getCompilation(Lexer lexer, SourceMessages messages)(Code)(Java Doc) public static Language getDefaultLanguage()(Code)(Java Doc) public Object getEnvPropertyFor(java.lang.reflect.Field fld, Object value)(Code)(Java Doc) public Object getEnvPropertyFor(Declaration decl)(Code)(Java Doc) final public Environment getEnvironment()(Code)(Java Doc) public AbstractFormat getFormat(boolean readable)(Code)(Java Doc) public static Language getInstance(String name)(Code)(Java Doc) public static Language getInstance(String langName, Class langClass)(Code)(Java Doc) public static Language getInstanceFromFilenameExtension(String filename)(Code)(Java Doc) public Environment getLangEnvironment()(Code)(Java Doc) final public Type getLangTypeFor(Type type)(Code)(Java Doc) public static String[][] getLanguages()(Code)(Java Doc) abstract public Lexer getLexer(InPort inp, SourceMessages messages)(Code)(Java Doc) public String getName()(Code)(Java Doc) public int getNamespaceOf(Declaration decl)(Code)(Java Doc) final public Environment getNewEnvironment()(Code)(Java Doc) public Consumer getOutputConsumer(Writer out)(Code)(Java Doc) public Procedure getPrompter()(Code)(Java Doc) public Symbol getSymbol(String name)(Code)(Java Doc) public Type getTypeFor(Class clas)(Code)(Java Doc) public Type getTypeFor(String name)(Code)(Java Doc) final public Type getTypeFor(Object spec, boolean lenient)(Code)(Java Doc) final public Type getTypeFor(Expression exp)(Code)(Java Doc) public Type getTypeFor(Expression exp, boolean lenient)(Code)(Java Doc) public boolean hasNamespace(Declaration decl, int namespace)(Code)(Java Doc) public boolean hasSeparateFunctionNamespace()(Code)(Java Doc) public boolean isTrue(Object value)(Code)(Java Doc) public void loadClass(String name) throws java.lang.ClassNotFoundException(Code)(Java Doc) public Object lookup(String name)(Code)(Java Doc) public NamedLocation lookupBuiltin(Symbol name, Object property, int hash)(Code)(Java Doc) public Object noValue()(Code)(Java Doc) final public Compilation parse(InPort port, gnu.text.SourceMessages messages, int options) throws java.io.IOException, gnu.text.SyntaxException(Code)(Java Doc) final public Compilation parse(InPort port, gnu.text.SourceMessages messages, ModuleInfo info) throws java.io.IOException, gnu.text.SyntaxException(Code)(Java Doc) final public Compilation parse(Lexer lexer, int options, ModuleInfo info) throws java.io.IOException, gnu.text.SyntaxException(Code)(Java Doc) abstract public boolean parse(Compilation comp, int options) throws java.io.IOException, gnu.text.SyntaxException(Code)(Java Doc) public static void registerLanguage(String[] langMapping)(Code)(Java Doc) public void resolve(Compilation comp)(Code)(Java Doc) public void runAsApplication(String[] args)(Code)(Java Doc) public static void setDefaultLanguage(Language language)(Code)(Java Doc) public static synchronized void setDefaults(Language lang)(Code)(Java Doc) public static Type string2Type(String name)(Code)(Java Doc)
|
|
|