gnu.commonlisp.lang

Class Lisp2

public abstract class Lisp2 extends LispLanguage

Abstract class for Lisp-like languages with separate namespaces.
Field Summary
static LListFALSE
static ExpressionnilExpr
static SymbolTRUE
Method Summary
static ObjectasSymbol(String name)
Get a symbol for a given (interned) Java string.
ObjectbooleanObject(boolean b)
ReadTablecreateReadTable()
protected voiddefun(String name, Object value)
protected voiddefun(Symbol sym, Object value)
voidemitPushBoolean(boolean value, CodeAttr code)
protected SymbolfromLangSymbol(Object obj)
ObjectgetEnvPropertyFor(Field fld, Object value)
intgetNamespaceOf(Declaration decl)
static ObjectgetString(String name)
Get a string for a given Java string.
static ObjectgetString(Symbol symbol)
Get a string for a given symbol.
booleanhasSeparateFunctionNamespace()
protected voidimportLocation(Location loc)
booleanisTrue(Object value)
ObjectnoValue()
booleanselfEvaluatingSymbol(Object obj)

Field Detail

FALSE

public static final LList FALSE

nilExpr

public static final Expression nilExpr

TRUE

public static final Symbol TRUE

Method Detail

asSymbol

public static Object asSymbol(String name)
Get a symbol for a given (interned) Java string.

booleanObject

public Object booleanObject(boolean b)

createReadTable

public ReadTable createReadTable()

defun

protected void defun(String name, Object value)

defun

protected void defun(Symbol sym, Object value)

emitPushBoolean

public void emitPushBoolean(boolean value, CodeAttr code)

fromLangSymbol

protected Symbol fromLangSymbol(Object obj)

getEnvPropertyFor

public Object getEnvPropertyFor(Field fld, Object value)

getNamespaceOf

public int getNamespaceOf(Declaration decl)

getString

public static Object getString(String name)
Get a string for a given Java string.

getString

public static Object getString(Symbol symbol)
Get a string for a given symbol.

hasSeparateFunctionNamespace

public boolean hasSeparateFunctionNamespace()

importLocation

protected void importLocation(Location loc)

isTrue

public boolean isTrue(Object value)

noValue

public Object noValue()

selfEvaluatingSymbol

public boolean selfEvaluatingSymbol(Object obj)