Package | Description |
---|---|
io.opsit.explang | |
io.opsit.explang.jsr223 |
Modifier and Type | Class and Description |
---|---|
class |
Compiler.Ctx |
class |
Compiler.Eargs
Context adepted for function arguments.
|
Modifier and Type | Field and Description |
---|---|
protected Compiler.ICtx |
Backtrace.Frame.ctx |
Modifier and Type | Field and Description |
---|---|
static Map<Thread,Compiler.ICtx> |
Threads.contexts |
Modifier and Type | Method and Description |
---|---|
protected Compiler.ICtx |
Compiler.Ctx.findCtxFor(String name) |
protected Compiler.ICtx |
Compiler.Ctx.findCtxOrGlobal(String name) |
protected Compiler.ICtx |
Compiler.Ctx.findCtxOrLocal(String name) |
Compiler.ICtx |
Compiler.ICtx.getLevel0() |
Compiler.ICtx |
Compiler.Ctx.getLevel0() |
Compiler.ICtx |
Compiler.ICtx.getPrev() |
Compiler.ICtx |
Compiler.Ctx.getPrev() |
Compiler.ICtx |
Compiler.newCtx() |
Compiler.ICtx |
Compiler.newCtx(Compiler.ICtx ctx) |
Compiler.ICtx |
Compiler.newCtx(Map<String,Object> vars) |
Compiler.ICtx |
Compiler.newCtxFromROMap(Map<String,Object> vars) |
Modifier and Type | Method and Description |
---|---|
List<Compiler.ICtx> |
Compiler.ICtx.getParentContexts() |
List<Compiler.ICtx> |
Compiler.Ctx.getParentContexts() |
Modifier and Type | Method and Description |
---|---|
protected int |
Funcs.ABSTRACTMAPOP.callfunc(Backtrace backtrace,
List<Object> results,
Object[] seqs,
int[] indices,
IExpr instance,
List<ICompiled> callParams,
Compiler.ICtx ctx) |
protected abstract void |
Funcs.ABSTRACTMAPOP.callfuncs(Backtrace backtrace,
List<Object> results,
Object[] seqs,
IExpr instance,
List<ICompiled> callParams,
Compiler.ICtx ctx) |
protected void |
Funcs.MAP.callfuncs(Backtrace backtrace,
List<Object> results,
Object[] seqs,
IExpr instance,
List<ICompiled> callParams,
Compiler.ICtx ctx) |
protected void |
Funcs.MAPPROD.callfuncs(Backtrace backtrace,
List<Object> results,
Object[] seqs,
IExpr instance,
List<ICompiled> callParams,
Compiler.ICtx ctx) |
protected abstract Object |
Compiler.AbstractForm.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
ICode |
Compiler.FUNCTION.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.PROGN.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.TRY.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.WHILE.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.FOREACH.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.COND.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.TH_BASE.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.IF.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.WHEN.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
ICode |
Compiler.DEFUN.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
ICode |
Compiler.LAMBDA.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.SETF.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.DLET.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
protected Object |
Compiler.QUOTE.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.WITH_BINDINGS.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.WITH_CTX.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.ABSTRACT_SET_OP.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.LET.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.SEARCH.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
protected abstract Object |
Funcs.AbstractExpr.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Funcs.FuncExp.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Funcs.FUNCALL.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
protected Object |
Funcs.VarExp.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Funcs.ValueExpr.doEvaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Funcs.HASHMAP.doSet(Backtrace backtrace,
Compiler.ICtx ctx,
Object value) |
Object |
Funcs.GET_IN.doSet(Backtrace backtrace,
Compiler.ICtx ctx,
Object value) |
Object |
Funcs.LIST.doSet(Backtrace backtrace,
Compiler.ICtx ctx,
Object value) |
Object |
Funcs.AREF.doSet(Backtrace backtrace,
Compiler.ICtx ctx,
Object value) |
Object |
Funcs.LValue.doSet(Backtrace backtrace,
Compiler.ICtx ctx,
Object value) |
Object |
Funcs.VarExp.doSet(Backtrace backtrace,
Compiler.ICtx ctx,
Object value) |
protected Object |
Funcs.SORT.doSort(Object seq,
ICode lambda,
Backtrace bt,
Compiler.ICtx ctx) |
protected Object |
Funcs.NSORT.doSort(Object seq,
ICode lambda,
Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.evalBlocks(Backtrace backtrace,
List<ICompiled> blocks,
Compiler.ICtx ctx)
Evaluate block of compiled expressions.
|
Object |
Compiler.evalBlocksWithReturn(Backtrace backtrace,
List<ICompiled> blocks,
Compiler.ICtx ctx)
Evaluate block of compiled expressions, handling return statement if present.
|
Object |
Compiler.AbstractForm.evaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Compiler.InstanceProxy.evaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
LazyEval.evaluate(Backtrace backtrace,
Compiler.ICtx extCtx) |
Object |
ICompiled.evaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Object |
Funcs.AbstractExpr.evaluate(Backtrace backtrace,
Compiler.ICtx ctx) |
Compiler.Eargs |
ArgList.evaluateArguments(Backtrace backtrace,
Compiler.ICtx ctx)
Evaluate function arguments given execution context.
|
protected List<Object> |
Compiler.IF.evaluateParameters(Backtrace backtrace,
Compiler.ICtx ctx) |
protected List<Object> |
Compiler.WHEN.evaluateParameters(Backtrace backtrace,
Compiler.ICtx ctx) |
Compiler.Eargs |
Funcs.FuncExp.evaluateParameters(Backtrace backtrace,
Compiler.ICtx ctx)
Evaluate function parameters in the execution context.
|
protected Object |
Compiler.IF.evalWithArgs(Backtrace backtrace,
List<Object> eargs,
Compiler.ICtx ctx) |
protected Object |
Compiler.WHEN.evalWithArgs(Backtrace backtrace,
List<Object> eargs,
Compiler.ICtx ctx) |
Object |
Compiler.IMissHandler.handleMiss(Compiler.ICtx ctx,
String key) |
Object |
Compiler.NilMissHandler.handleMiss(Compiler.ICtx ctx,
String key) |
Object |
Compiler.ErrorMissHandler.handleMiss(Compiler.ICtx ctx,
String key) |
static String |
Utils.listCtxVars(Compiler.ICtx ctx,
Object vars,
IObjectWriter w)
Print contents details with selected context bindings
if vars is a collection of variable names.
|
protected Boolean |
Funcs.LOAD.load(Backtrace bt,
Compiler.ICtx ctx,
Object loadObj) |
Compiler.ICtx |
Compiler.newCtx(Compiler.ICtx ctx) |
Compiler.Eargs |
Compiler.newEargs(Object[] result,
boolean[] needEval,
ArgList argList,
Compiler.ICtx ctx) |
void |
Backtrace.push(String frameName,
ParseCtx pctx,
Compiler.ICtx ctx) |
protected abstract void |
Compiler.ABSTRACT_SET_OP.setvar(String name,
Object val,
Compiler.ICtx ctx) |
protected void |
Compiler.SETL.setvar(String name,
Object val,
Compiler.ICtx ctx) |
protected void |
Compiler.SETV.setvar(String name,
Object val,
Compiler.ICtx ctx) |
protected void |
Compiler.SETQ.setvar(String name,
Object val,
Compiler.ICtx ctx) |
Constructor and Description |
---|
Ctx(Compiler.ICtx prev)
Create child context linking to previous context.
|
Ctx(Compiler.ICtx locals,
Compiler.ICtx ctx)
Create child context linking to ctx as previous context and adding all local mapping from the
locals context.
|
Ctx(Compiler.ICtx prev,
Map<String,Object> vars) |
Ctx(Compiler.ICtx prev,
Map<String,Object> vars,
boolean roCtx)
Make context based on parent context and map of value mappings.
|
Eargs(Object[] eargs,
boolean[] needEval,
ArgList argList,
Compiler.ICtx ctx)
Create arguments list.
|
Frame(String frameName,
ParseCtx pctx,
Compiler.ICtx ctx)
Create backtrace frame with given attributes.
|
Modifier and Type | Method and Description |
---|---|
protected Compiler.ICtx |
ExplangScriptEngine.makeCtx(ScriptContext sc) |
Copyright © 2022. All rights reserved.