blark.transform.IndirectionType
- class blark.transform.IndirectionType(pointer_depth: int, reference: bool, meta: Meta | None = None)[source]
Bases:
objectIndirect access through a pointer or reference.
Lark grammar
This class is used by the following grammar rules:
indirection_typeindirection_type: REFERENCE_TO | POINTER_TO+ | REFERENCE_TO POINTER_TO+
pointer_typepointer_type: POINTER_TO+
Methods
__init__(pointer_depth, reference[, meta])from_lark(*tokens)Attributes
True if this denotes a pointer (of any depth) or a reference.
A depth of 1 is "POINTER TO", a depth of 2 is "POINTER TO POINTER TO".
If set, "REFERENCE TO POINTER TO..."
- static from_lark(*tokens: Token) IndirectionType[source]