blark.transform.GlobalVariableSpec
- class blark.transform.GlobalVariableSpec(variables: List[Token], location: IncompleteLocation | Location | None, meta: Meta | None = None)[source]
Bases:
object
Global variable specification; the part that comes before the initialization.
Located (or incomplete located) specifications only apply to one variable, whereas simple specifications can have multiple variables.
Examples:
iValue1, iValue2 iValue3 AT %I* iValue4 AT %IX1.1
Lark grammar
This class is used by the following grammar rules:
global_var_spec
global_var_spec: global_var_list | global_var_name (location | incomplete_location)
Methods
__init__
(variables, location[, meta])from_lark
(name_or_names[, location])Attributes
- location: IncompleteLocation | Location | None
- static from_lark(name_or_names: Token | Tree, location: IncompleteLocation | Location | None = None) GlobalVariableSpec [source]