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:
DirectVariable
A located direct variable. (e.g.,
AT %IX1.1
)Lark grammar
This class is used by the following grammar rules:
location
location: "AT"i direct_variable
Methods
from_lark
(var)Attributes
bits
The number of bits.
meta
Lark metadata.
location_prefix
The location prefix (e.g., I, Q, or M)
location
The location number itself (e.g., 2 of %IX2.1)
size_prefix
Size prefix, used in locations (e.g.,
%IX1.1
has a bit prefix).- static from_lark(var: DirectVariable) Location [source]