blark.transform.StringTypeSpecification
- class blark.transform.StringTypeSpecification(type_name: Token, length: StringSpecLength | None = None, meta: Meta | None = None)[source]
Bases:
TypeSpecificationBase
Specification of a string type.
Examples:
STRING(2_500_000) STRING(Param.iLower) STRING(Param.iLower * 2 + 10) STRING(Param.iLower / 2 + 10)
Bracketed versions are also acceptable:
STRING[2_500_000] STRING[Param.iLower]
Lark grammar
This class is used by the following grammar rules:
string_type_specification
string_type_specification: (STRING | WSTRING) [ string_spec_length ]
Methods
__init__
(type_name[, length, meta])Attributes
The base type name.
The full type name.
type_info
The base type name.
- length: StringSpecLength | None = None
- from_lark() T