saealib.Loop#

class saealib.Loop(body, *, until, name='')[source]#

Bases: _ControlValue

Repeat a structural body while a condition remains active.

Parameters:
  • body (PipelineEntry)

  • until (Condition)

  • name (str)

Methods

__init__

to_pseudocode

Render this loop as a lightweight pseudocode line.

to_text

Render this loop as a single plain-text line.

Method Details

Loop.__init__(body, *, until, name='')[source]#
Parameters:
Return type:

None

Loop.to_pseudocode(*, expand=False, indent=0)[source]#

Render this loop as a lightweight pseudocode line.

Parameters:
  • expand (bool)

  • indent (int)

Return type:

str

Loop.to_text(*, expand=False, indent=0)[source]#

Render this loop as a single plain-text line.

Parameters:
  • expand (bool)

  • indent (int)

Return type:

str