knitout_interpreter.debugger.common_debugging_conditions module

A library of common conditions for debugging steps and carriage-pass steps.

is_instruction_type(_debugger, instruction, instruction_type)[source]
Parameters:
Returns:

True if the next instruction is of the given instruction type(s) or one of their subclasses update the machine state of the process being debugged.

Return type:

bool

is_not_instruction_type(_debugger, instruction, instruction_type)[source]
Parameters:
Returns:

True if the next instruction not the given instruction type(s) or one of their subclasses update the machine state of the process being debugged.

Return type:

bool

not_comment(_debugger, instruction)[source]
Parameters:
Returns:

True if the next instruction is an instruction (not a comment).

Return type:

bool

will_update_machine_state(debugger, instruction)[source]
Parameters:
Returns:

True if the next instruction will update the machine state of the process being debugged.

Return type:

bool

loop_count_is(debugger, _instruction, loop_count)[source]
Parameters:
Returns:

True debugged process has produced exactly loop_count loops.

Return type:

bool

loop_count_exceeds(debugger, _instruction, loop_count)[source]
Parameters:
Returns:

True debugged process has produced more than loop_count loops.

Return type:

bool

loop_count_less_than(debugger, _instruction, loop_count)[source]
Parameters:
Returns:

True debugged process has produced less than loop_count loops.

Return type:

bool