blark.transform.DataType
- class blark.transform.DataType(indirection: IndirectionType | None, type_name: Token | StringTypeSpecification, meta: Meta | None = None)[source]
Bases:
object
A non-generic type name, or a data type name.
May be indirect (e.g., POINTER TO).
An elementary type name, a derived type name, or a general dotted identifier are valid for this.
Lark grammar
This class is used by the following grammar rules:
non_generic_type_name
non_generic_type_name: [ pointer_type ] ( elementary_type_name | derived_type_name | DOTTED_IDENTIFIER )
Methods
__init__
(indirection, type_name[, meta])Attributes
- indirection: IndirectionType | None
- type_name: Token | StringTypeSpecification
- __init__(indirection: IndirectionType | None, type_name: Token | StringTypeSpecification, meta: Meta | None = None) None
- from_lark() T