beanmachine.ppl.compiler.execution_context module

class beanmachine.ppl.compiler.execution_context.CallStack

Bases: object

peek() → Optional[beanmachine.ppl.compiler.execution_context.FunctionCall]
pop() → beanmachine.ppl.compiler.execution_context.FunctionCall
push(FunctionCall: beanmachine.ppl.compiler.execution_context.FunctionCall) → None
class beanmachine.ppl.compiler.execution_context.ExecutionContext

Bases: object

call(func: Callable, args: Any, kwargs: Dict[str, Any] = {}) → Any
current_site() → Optional[beanmachine.ppl.compiler.execution_context.FunctionCall]
node_locations(node: beanmachine.ppl.compiler.bmg_nodes.BMGNode) → Set[beanmachine.ppl.compiler.execution_context.FunctionCall]
record_node_call(node: beanmachine.ppl.compiler.bmg_nodes.BMGNode, site: Optional[beanmachine.ppl.compiler.execution_context.FunctionCall] = None) → None
class beanmachine.ppl.compiler.execution_context.FunctionCall(func: Callable, args: Any, kwargs: Dict[str, Any])

Bases: object

args: Any
func: Callable
kwargs: Dict[str, Any]