|
|||||||||
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 gnu.commonlisp.lang.Lisp2
public abstract class Lisp2
Abstract class for Lisp-like languages with separate namespaces.
Field Summary | |
---|---|
static LList |
FALSE
|
static Expression |
nilExpr
|
static Symbol |
TRUE
|
Fields inherited from class gnu.kawa.lispexpr.LispLanguage |
---|
defaultReadTable, quasiquote_sym, quote_sym, unquote_sym, unquotesplicing_sym |
Fields inherited from class gnu.expr.Language |
---|
current, env_counter, environ, FUNCTION_NAMESPACE, NAMESPACE_PREFIX, NAMESPACE_PREFIX_NAMESPACE, PARSE_IMMEDIATE, PARSE_ONE_LINE, userEnv, VALUE_NAMESPACE |
Constructor Summary | |
---|---|
Lisp2()
|
Method Summary | |
---|---|
static java.lang.Object |
asSymbol(java.lang.String name)
Get a symbol for a given (interned) Java string. |
java.lang.Object |
booleanObject(boolean b)
|
protected void |
defun(java.lang.String name,
java.lang.Object value)
|
protected void |
defun(Symbol sym,
java.lang.Object value)
|
void |
emitPushBoolean(boolean value,
CodeAttr code)
|
protected Symbol |
fromLangSymbol(java.lang.Object obj)
|
java.lang.Object |
getEnvPropertyFor(java.lang.reflect.Field fld,
java.lang.Object value)
|
int |
getNamespaceOf(Declaration decl)
Return the namespace (e.g value or function) of a Declaration. |
static java.lang.Object |
getString(java.lang.String name)
Get a string for a given Java string. |
static java.lang.Object |
getString(Symbol symbol)
Get a string for a given symbol. |
boolean |
hasSeparateFunctionNamespace()
True if functions are in a separate anme space from variable. |
protected void |
importLocation(Location loc)
|
boolean |
isTrue(java.lang.Object value)
Test if a value is considered "true" in this language. |
java.lang.Object |
noValue()
The value to return for a "void" result. |
boolean |
selfEvaluatingSymbol(java.lang.Object obj)
|
Methods inherited from class gnu.kawa.lispexpr.LispLanguage |
---|
createReadTable, declFromField, defSntxStFld, defSntxStFld, langSymbolToSymbol, makeApply, makeBody, parse |
Methods inherited from class gnu.expr.Language |
---|
asType, coerceFromObject, coerceToObject, coerceToObject, defAliasStFld, define, defineFunction, defineFunction, defProcStFld, defProcStFld, emitCoerceToBoolean, eval, eval, eval, eval, eval, eval, eval, eval, eval, getDefaultLanguage, getEnvironment, getEnvPropertyFor, getFormat, getInstance, getInstance, getInstanceFromFilenameExtension, getLangEnvironment, getLanguages, getLexer, getName, getNewEnvironment, getOutputConsumer, getPrompter, getSymbol, getTypeFor, getTypeFor, getTypeFor, loadClass, lookup, lookupBuiltin, parse, print, print, registerLanguage, runAsApplication, setDefaultLanguage, setDefaults, string2Type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final LList FALSE
public static final Symbol TRUE
public static final Expression nilExpr
Constructor Detail |
---|
public Lisp2()
Method Detail |
---|
public boolean isTrue(java.lang.Object value)
Language
isTrue
in class Language
public java.lang.Object booleanObject(boolean b)
booleanObject
in class Language
public void emitPushBoolean(boolean value, CodeAttr code)
emitPushBoolean
in class Language
public java.lang.Object noValue()
Language
noValue
in class Language
public boolean hasSeparateFunctionNamespace()
Language
hasSeparateFunctionNamespace
in class Language
public boolean selfEvaluatingSymbol(java.lang.Object obj)
selfEvaluatingSymbol
in class LispLanguage
public java.lang.Object getEnvPropertyFor(java.lang.reflect.Field fld, java.lang.Object value)
getEnvPropertyFor
in class Language
public int getNamespaceOf(Declaration decl)
Language
getNamespaceOf
in class Language
public static java.lang.Object asSymbol(java.lang.String name)
protected Symbol fromLangSymbol(java.lang.Object obj)
fromLangSymbol
in class LispLanguage
public static java.lang.Object getString(java.lang.String name)
public static java.lang.Object getString(Symbol symbol)
protected void defun(java.lang.String name, java.lang.Object value)
protected void defun(Symbol sym, java.lang.Object value)
protected void importLocation(Location loc)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |