blark.transform.OutputParameterAssignment
- class blark.transform.OutputParameterAssignment(name: SimpleVariable, value: Expression | None, inverted: bool = False, meta: Meta | None = None)[source]
Bases:
ParameterAssignment
A named output parameter, which may be inverted.
Examples:
name => output NOT name => output2 name => NOT name =>
Lark grammar
This class is used by the following grammar rules:
output_parameter_assignment
param_assignment: [ LOGICAL_NOT ] variable_name "=>" [ expression ] -> output_parameter_assignment
Methods
__init__
(name, value[, inverted, meta])from_lark
(inverted, name, value)Attributes
- name: SimpleVariable
- value: Expression | None
- static from_lark(inverted: Token | None, name: SimpleVariable, value: Expression) OutputParameterAssignment [source]
- __init__(name: SimpleVariable, value: Expression | None, inverted: bool = False, meta: Meta | None = None) None