openpectus.lang.exec.base_unit

Classes

BaseUnitProvider

Manages a mapping between units that can be used in the Base instruction and

Module Contents

class openpectus.lang.exec.base_unit.BaseUnitProvider

Manages a mapping between units that can be used in the Base instruction and the tags that provides the value in non-block and block scopes.

map: dict[str, tuple[str, str]]
__str__()
Return type:

str

has(unit)
Parameters:

unit (str)

Return type:

bool

set(unit, main_tag_name, block_tag_name)
Parameters:
  • unit (str)

  • main_tag_name (str)

  • block_tag_name (str)

get_units()
Return type:

list[str]

get_tags(unit)
Parameters:

unit (str)

Return type:

tuple[str, str]