blark.transform.SubrangeTypeDeclaration
- class blark.transform.SubrangeTypeDeclaration(name: Token, init: SubrangeTypeInitialization, meta: Meta | None = None)[source]
Bases:
object
A subrange type declaration.
Examples:
TypeName : INT (1..2) TypeName : INT (*) := 1
Lark grammar
This class is used by the following grammar rules:
subrange_type_declaration
subrange_type_declaration: subrange_type_name ":" subrange_spec_init
Methods
__init__
(name, init[, meta])Attributes
- from_lark() T