|
||||||||||
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
public abstract class LispLanguage
Language sub-class for Lisp-like languages (including Scheme).
Field Summary | |
---|---|
ReadTable |
defaultReadTable
The default ReadTable for this language. |
static java.lang.String |
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
|
Fields inherited from class gnu.expr.Language |
---|
current, env_counter, environ, FUNCTION_NAMESPACE, NAMESPACE_PREFIX_NAMESPACE, PARSE_IMMEDIATE, PARSE_ONE_LINE, PARSE_PROLOG, requirePedantic, userEnv, VALUE_NAMESPACE |
Constructor Summary | |
---|---|
LispLanguage()
|
Method Summary | |
---|---|
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)
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 java.lang.String lookup_sym
public ReadTable defaultReadTable
ReadTable
for this language.
Constructor Detail |
---|
public LispLanguage()
Method Detail |
---|
public abstract ReadTable createReadTable()
ReadTable
appropriate for this language.
public Lexer getLexer(InPort inp, SourceMessages messages)
getLexer
in class Language
public Compilation getCompilation(Lexer lexer, SourceMessages messages)
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)
resolve
in class Language
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |