Modifier and Type | Field and Description |
---|---|
static Symbol |
bracket_apply_sym |
static Symbol |
bracket_list_sym |
ReadTable |
defaultReadTable
The default
ReadTable for this language. |
static StaticFieldLocation |
getNamedPartLocation |
static Symbol |
lookup_sym
Used for Kawa infix ':' operator.
|
static java.lang.String |
quasiquote_sym |
static java.lang.String |
quote_sym |
static java.lang.String |
unquote_sym |
static java.lang.String |
unquotesplicing_sym |
current, 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 |
---|
LispLanguage() |
Modifier and Type | Method and Description |
---|---|
Expression |
checkDefaultBinding(Symbol name,
Translator tr)
If a symbol is lexically unbound, look for a default binding.
|
abstract ReadTable |
createReadTable()
Create a fresh
ReadTable appropriate for this language. |
Declaration |
declFromField(ModuleExp mod,
java.lang.Object fvalue,
Field fld) |
protected void |
defSntxStFld(java.lang.String name,
java.lang.String cname) |
protected void |
defSntxStFld(java.lang.String name,
java.lang.String cname,
java.lang.String fname)
Declare in the current Environment a Syntax bound to a static field.
|
protected Symbol |
fromLangSymbol(java.lang.Object sym) |
Compilation |
getCompilation(Lexer lexer,
SourceMessages messages,
NameLookup lexical) |
Lexer |
getLexer(InPort inp,
SourceMessages messages) |
static Symbol |
langSymbolToSymbol(java.lang.Object sym)
Convert the Language's idea of a symbol to a gnu.mapping.Symbol.
|
Expression |
makeApply(Expression func,
Expression[] args) |
Expression |
makeBody(Expression[] exps)
Combine a consisting of a list of expression.
|
boolean |
parse(Compilation comp,
int options) |
void |
resolve(Compilation comp)
Resolve names and other post-parsing processing.
|
boolean |
selfEvaluatingSymbol(java.lang.Object obj) |
asType, booleanObject, coerceFromObject, coerceToObject, defAliasStFld, define, defineFunction, defineFunction, defProcStFld, defProcStFld, detect, detect, detect, emitCoerceToBoolean, emitPushBoolean, eval, eval, eval, eval, eval, eval, eval, eval, eval, formatType, getDefaultLanguage, getEnvironment, getEnvPropertyFor, getEnvPropertyFor, getFormat, getInstance, getInstance, getInstanceFromFilenameExtension, getLangEnvironment, getLangTypeFor, getLanguages, getName, getNamespaceOf, getNewEnvironment, getOutputConsumer, getPrompter, getSymbol, getTypeFor, getTypeFor, getTypeFor, getTypeFor, getTypeFor, hasNamespace, hasSeparateFunctionNamespace, isTrue, loadClass, lookup, lookupBuiltin, noValue, parse, parse, parse, parse, registerLanguage, restoreCurrent, runAsApplication, setCurrentLanguage, setDefaults, setSaveCurrent, string2Type, unionType
public static final java.lang.String quote_sym
public static final java.lang.String unquote_sym
public static final java.lang.String unquotesplicing_sym
public static final java.lang.String quasiquote_sym
public static final Symbol lookup_sym
public static final Symbol bracket_list_sym
public static final Symbol bracket_apply_sym
public static StaticFieldLocation getNamedPartLocation
public ReadTable defaultReadTable
ReadTable
for this language.public abstract ReadTable createReadTable()
ReadTable
appropriate for this language.public Lexer getLexer(InPort inp, SourceMessages messages)
public Compilation getCompilation(Lexer lexer, SourceMessages messages, NameLookup lexical)
getCompilation
in class Language
public boolean parse(Compilation comp, int options) throws java.io.IOException, SyntaxException
parse
in class Language
java.io.IOException
SyntaxException
public void resolve(Compilation comp)
public Declaration declFromField(ModuleExp mod, java.lang.Object fvalue, Field fld)
declFromField
in class Language
protected void defSntxStFld(java.lang.String name, java.lang.String cname, java.lang.String fname)
name
- the procedure's source-level name.cname
- the name of the class containing the field.fname
- the name of the field, which should be a static
final field whose type extends kawa.lang.Syntax.protected void defSntxStFld(java.lang.String name, java.lang.String cname)
public Expression makeBody(Expression[] exps)
public Expression makeApply(Expression func, Expression[] args)
public boolean selfEvaluatingSymbol(java.lang.Object obj)
public static Symbol langSymbolToSymbol(java.lang.Object sym)
protected Symbol fromLangSymbol(java.lang.Object sym)
public Expression checkDefaultBinding(Symbol name, Translator tr)