public final class Interpreter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
java.lang.String |
namespace |
Modifier and Type | Method and Description |
---|---|
void |
addDefinition(java.lang.String name,
java.lang.Object value) |
void |
addVirgin(java.lang.String name,
Code virgin) |
void |
dispose() |
static void |
dispose(java.lang.String namespace) |
java.lang.Object |
evaluate(List description) |
java.lang.Object |
evaluate(java.lang.Object form,
Environment env) |
java.lang.Object |
evaluate(java.lang.String desc) |
java.lang.Object |
evaluate(java.lang.String desc,
java.lang.String filename) |
protected java.lang.Object |
evaluateString(java.lang.String str,
Environment env,
g2d.jlambda.Continuation k) |
java.lang.Object |
evaluateText(java.lang.String input) |
static Interpreter |
getInterpreter(java.lang.String namespace) |
static java.lang.String[] |
getNamespaces() |
java.lang.Object |
getObject(java.lang.Object uid) |
protected static java.lang.Object |
getStaticField(java.lang.String string) |
java.lang.String |
getUID(java.lang.Object obj) |
Code |
getVirgin(java.lang.String name) |
java.lang.Object |
globalLookup(java.lang.String name) |
protected java.lang.String |
hashMap2String(java.util.Map<?,?> table,
boolean showAttrs) |
protected static boolean |
isStaticField(java.lang.String string) |
protected java.lang.Boolean |
object2Boolean(java.lang.Object b,
g2d.jlambda.Continuation k) |
protected java.lang.Number |
object2Number(java.lang.Object n,
g2d.jlambda.Continuation k) |
void |
printDefinitions(boolean bodiesToo) |
protected void |
printUIDs() |
void |
reset() |
void |
setUID(java.lang.Object uid,
java.lang.Object obj) |
java.lang.String |
stringOfDefinitions() |
java.lang.String |
stringOfUIDs() |
void |
unsetUID(java.lang.Object obj) |
protected static PrimitiveData |
wrap(java.lang.Object obj) |
public static final boolean DEBUG
public final java.lang.String namespace
public static final Interpreter getInterpreter(java.lang.String namespace)
public static final java.lang.String[] getNamespaces()
public java.lang.Object evaluateText(java.lang.String input) throws g2d.jlambda.antlr4.visitor.ParseError, SyntaxError
g2d.jlambda.antlr4.visitor.ParseError
SyntaxError
public java.lang.Object evaluate(java.lang.String desc) throws g2d.jlambda.antlr4.visitor.ParseError, SyntaxError
g2d.jlambda.antlr4.visitor.ParseError
SyntaxError
public java.lang.Object evaluate(java.lang.String desc, java.lang.String filename) throws g2d.jlambda.antlr4.visitor.ParseError, SyntaxError
g2d.jlambda.antlr4.visitor.ParseError
SyntaxError
public java.lang.Object evaluate(List description) throws SyntaxError
SyntaxError
public java.lang.Object evaluate(java.lang.Object form, Environment env)
public static void dispose(java.lang.String namespace)
public void dispose()
public void reset()
public java.lang.Object globalLookup(java.lang.String name)
protected java.lang.Object evaluateString(java.lang.String str, Environment env, g2d.jlambda.Continuation k) throws EvaluateError
EvaluateError
public void setUID(java.lang.Object uid, java.lang.Object obj) throws EvaluateError
EvaluateError
public void unsetUID(java.lang.Object obj)
public java.lang.Object getObject(java.lang.Object uid)
public java.lang.String getUID(java.lang.Object obj)
public void addDefinition(java.lang.String name, java.lang.Object value)
public void addVirgin(java.lang.String name, Code virgin)
public Code getVirgin(java.lang.String name)
public void printDefinitions(boolean bodiesToo)
protected void printUIDs()
public java.lang.String stringOfUIDs()
public java.lang.String stringOfDefinitions()
protected java.lang.String hashMap2String(java.util.Map<?,?> table, boolean showAttrs)
protected java.lang.Number object2Number(java.lang.Object n, g2d.jlambda.Continuation k) throws EvaluateError
EvaluateError
protected java.lang.Boolean object2Boolean(java.lang.Object b, g2d.jlambda.Continuation k) throws EvaluateError
EvaluateError
protected static boolean isStaticField(java.lang.String string)
protected static java.lang.Object getStaticField(java.lang.String string)
protected static PrimitiveData wrap(java.lang.Object obj)