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])

from_lark()

Attributes

dereferenced

Is the variable dereferenced with '^'?.

meta

name

The variable name.

variable

location

variable: SimpleVariable
location: IncompleteLocation | Location | None
meta: Meta | None = None
property name: Token

The variable name.

property dereferenced: bool

Is the variable dereferenced with ‘^’?.

__init__(variable: SimpleVariable, location: IncompleteLocation | Location | None, meta: Meta | None = None) None
from_lark() T