blark.transform.SubrangeSpecification
- class blark.transform.SubrangeSpecification(type_name: Token, subrange: Subrange | None = None, meta: Meta | None = None)[source]
Bases:
TypeSpecificationBase
A subrange specification.
Examples:
INT (*) INT (1..2) TYPE_NAME (TODO; overlap)
Lark grammar
This class is used by the following grammar rules:
subrange_specification
subrange_specification: INTEGER_TYPE_NAME "(" subrange ")" | subrange_type_name
Methods
__init__
(type_name[, subrange, meta])Attributes
The base type name.
The full type name.
type_info
The base type name.
- from_lark() T