blark.transform.StringVariableInitDeclaration
- class blark.transform.StringVariableInitDeclaration(variables: List[DeclaredVariable], spec: StringTypeSpecification, value: Token | None, init: _GenericInit, meta: Meta | None = None)[source]
Bases:
InitDeclaration
A declaration of one or more variables using single/double byte strings, with an optinoal initialization value.
Examples:
sVar1 : STRING(2_500_000) := 'test1' sVar2, sVar3 : STRING(Param.iLower) := 'test2' sVar4, sVar5 : WSTRING(Param.iLower) := "test3"
Lark grammar
This class is used by the following grammar rules:
single_byte_string_var_declaration
single_byte_string_var_declaration: var1_list ":" single_byte_string_spec
double_byte_string_var_declaration
double_byte_string_var_declaration: var1_list ":" double_byte_string_spec
Methods
__init__
(variables, spec, value, init[, meta])from_lark
(variables, string_info)Attributes
- variables: List[DeclaredVariable]
- spec: StringTypeSpecification
- init: _GenericInit
- static from_lark(variables: List[DeclaredVariable], string_info: StringTypeInitialization)[source]
- __init__(variables: List[DeclaredVariable], spec: StringTypeSpecification, value: Token | None, init: _GenericInit, meta: Meta | None = None) None