afe.driver.compile_step

Construction of compilation pipelines from compilation steps.

Classes

CompileStep

A step of processing a model in AFE.

Module Contents

class afe.driver.compile_step.CompileStep[source]

A step of processing a model in AFE.

run() _R[source]
static pure(value: _A) CompileStep[_A][source]

Make a CompileStep that evaluates to the given value and does not execute anything.

then(continuation: Callable[[_R], CompileStep[_T]]) CompileStep[_T][source]

Compose this step with a continuation that processes this step’s result.

static from_thunk(thunk: Callable[[], _T]) CompileStep[_T][source]

Make a CompileStep that evaluates the given thunk when it runs.

map(f: Callable[[_R], _T]) CompileStep[_T][source]

Map a function over the result of this CompileStep.