blark.transform.NoOpStatement

class blark.transform.NoOpStatement(variable: Variable, meta: Meta | None = None)[source]

Bases: Statement

A no-operation statement referring to a variable and nothing else.

Distinguished from an action depending on if the context-sensitive name matches an action or a variable name.

Note that blark does not handle this for you and may arbitrarily choose one or the other.

Examples:

variable;

Lark grammar

This class is used by the following grammar rules:

no_op_statement

no_op_statement: _variable ";"+

Methods

__init__(variable[, meta])

from_lark()

Attributes

meta

variable

variable: Variable
meta: Meta | None = None
__init__(variable: Variable, meta: Meta | None = None) None
from_lark() T