blark.transform.DeclaredVariable
- class blark.transform.DeclaredVariable(variable: SimpleVariable, location: IncompleteLocation | Location | None, meta: Meta | None = None)[source]
Bases:
object
A single declared variable name and optional [direct or incomplete] location.
Examples:
iVar iVar AT %I* iVar AT %IX1.1
Lark grammar
This class is used by the following grammar rules:
var1
var1: variable_name [ location ] | variable_name [ incomplete_location ]
Methods
__init__
(variable, location[, meta])Attributes
Is the variable dereferenced with '^'?.
The variable name.
- variable: SimpleVariable
- location: IncompleteLocation | Location | None
- __init__(variable: SimpleVariable, location: IncompleteLocation | Location | None, meta: Meta | None = None) None
- from_lark() T