titus.genpy.GeneratePython

class titus.genpy.GeneratePython[source]

Bases: titus.pfaast.Task

A titus.pfaast.Task for turning PFA into executable Python.

commandsBeginEnd(codes, indent)

Concatenate commands for the begin or end method.

commandsEmit(codes, indent)

Concatenate commands for an emit-type engine.

commandsFold(codes, indent)

Concatenate commands for a fold-type engine.

commandsFoldMerge(codes, indent)

Concatenate commands for the merge section of a fold-type engine.

commandsMap(codes, indent)

Concatenate commands for a map-type engine.

static makeTask(style)

Make a titus.genpy.GeneratePython Task with a particular style.

Currently, the only style is “pure” (titus.genpy.GeneratePythonPure).

reprPath(path)

Build a path for “attr”, “cell”, or “pool” special forms.