core.commands.marker module

Define a useless command to keep track of MARKER.

class Marker(line: list[str], dat_idx: int, name: str | None = None, **kwargs: str)

Bases: Command

Dummy class.

__init__(line: list[str], dat_idx: int, name: str | None = None, **kwargs: str) None

Instantiate the dummy command.

_abc_impl = <_abc._abc_data object>
apply(instructions: list[Instruction], **kwargs: float) list[Instruction]

Do nothing.

concerns_one_of(dat_indexes: list[int]) bool

Tell if self concerns an element, which dat_idx is given.

Internally, we convert the self.influenced from a set to a list object and check intersections with dat_indexes.

Parameters:

dat_indexes (list[int]) – Indexes in the .dat file of the sub-list of elements under creation.

is_implemented: bool = False
set_influenced_elements(instructions: list[Instruction], **kwargs: float) None

Determine the index of the elements concerned by apply().