blark.transform.Location
- class blark.transform.Location(location_prefix: VariableLocationPrefix, location: Token, size_prefix: VariableSizePrefix, bits: List[Token] | None = None, meta: Meta | None = None)[source]
 Bases:
DirectVariableA located direct variable. (e.g.,
AT %IX1.1)Lark grammar
This class is used by the following grammar rules:
locationlocation: _AT direct_variable
Methods
from_lark(var)Attributes
bitsThe number of bits.
metaLark metadata.
location_prefixThe location prefix (e.g., I, Q, or M)
locationThe location number itself (e.g., 2 of %IX2.1)
size_prefixSize prefix, used in locations (e.g.,
%IX1.1has a bit prefix).- static from_lark(var: DirectVariable) Location[source]