public abstract class Lisp2 extends LispLanguage
| Modifier and Type | Field and Description |
|---|---|
static LList |
FALSE |
static Expression |
nilExpr |
static Symbol |
TRUE |
bracket_apply_sym, bracket_list_sym, defaultReadTable, getNamedPartLocation, lookup_sym, quasiquote_sym, quote_sym, unquote_sym, unquotesplicing_symcurrent, env_counter, environ, FUNCTION_NAMESPACE, global, NAMESPACE_PREFIX_NAMESPACE, PARSE_CURRENT_NAMES, PARSE_EXPLICIT, PARSE_FOR_APPLET, PARSE_FOR_EVAL, PARSE_FOR_SERVLET, PARSE_IMMEDIATE, PARSE_ONE_LINE, PARSE_PROLOG, requirePedantic, userEnv, VALUE_NAMESPACE| Constructor and Description |
|---|
Lisp2() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
asSymbol(java.lang.String name)
Get a symbol for a given (interned) Java string.
|
java.lang.Object |
booleanObject(boolean b) |
ReadTable |
createReadTable()
Create a fresh
ReadTable appropriate for this language. |
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) |
checkDefaultBinding, declFromField, defSntxStFld, defSntxStFld, getCompilation, getLexer, langSymbolToSymbol, makeApply, makeBody, parse, resolveasType, coerceFromObject, coerceToObject, defAliasStFld, define, defineFunction, defineFunction, defProcStFld, defProcStFld, detect, detect, detect, emitCoerceToBoolean, eval, eval, eval, eval, eval, eval, eval, eval, eval, formatType, getDefaultLanguage, getEnvironment, getEnvPropertyFor, getFormat, getInstance, getInstance, getInstanceFromFilenameExtension, getLangEnvironment, getLangTypeFor, getLanguages, getName, getNewEnvironment, getOutputConsumer, getPrompter, getSymbol, getTypeFor, getTypeFor, getTypeFor, getTypeFor, getTypeFor, hasNamespace, loadClass, lookup, lookupBuiltin, parse, parse, parse, parse, registerLanguage, restoreCurrent, runAsApplication, setCurrentLanguage, setDefaults, setSaveCurrent, string2Type, unionTypepublic static final LList FALSE
public static final Symbol TRUE
public static final Expression nilExpr
public boolean isTrue(java.lang.Object value)
Languagepublic java.lang.Object booleanObject(boolean b)
booleanObject in class Languagepublic void emitPushBoolean(boolean value,
CodeAttr code)
emitPushBoolean in class Languagepublic java.lang.Object noValue()
Languagepublic boolean hasSeparateFunctionNamespace()
LanguagehasSeparateFunctionNamespace in class Languagepublic boolean selfEvaluatingSymbol(java.lang.Object obj)
selfEvaluatingSymbol in class LispLanguagepublic java.lang.Object getEnvPropertyFor(java.lang.reflect.Field fld,
java.lang.Object value)
getEnvPropertyFor in class Languagepublic int getNamespaceOf(Declaration decl)
LanguagegetNamespaceOf in class Languagepublic static java.lang.Object asSymbol(java.lang.String name)
protected Symbol fromLangSymbol(java.lang.Object obj)
fromLangSymbol in class LispLanguagepublic 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)
public ReadTable createReadTable()
LispLanguageReadTable appropriate for this language.createReadTable in class LispLanguage