blark.transform.SubrangeTypeInitialization
- class blark.transform.SubrangeTypeInitialization(indirection: IndirectionType | None, spec: SubrangeSpecification, value: Expression | None = None, meta: Meta | None = None)[source]
Bases:
TypeInitializationBase
A subrange type initialization.
Examples:
INT (1..2) := 25
Lark grammar
This class is used by the following grammar rules:
subrange_spec_init
subrange_spec_init: [ indirection_type ] subrange_specification [ ":=" expression ]
Methods
__init__
(indirection, spec[, value, meta])Attributes
base_type_name
The base type name.
full_type_name
The full, qualified type name.
type_info
The base type name.
- indirection: IndirectionType | None
- spec: SubrangeSpecification
- value: Expression | None = None
- __init__(indirection: IndirectionType | None, spec: SubrangeSpecification, value: Expression | None = None, meta: Meta | None = None) None
- from_lark() T