MCPcopy Create free account
hub / github.com/NICUP14/MiniLang / VariableMetaKind

Class VariableMetaKind

src/Def.py:56–78  ·  view source on GitHub ↗

Defines all possible structural types. Meta-kinds are used internally to distinguish between primitives, advanced or composite types.

Source from the content-addressed store, hash-verified

54
55
56class VariableMetaKind(enum.Enum):
57 """
58 Defines all possible structural types.
59 Meta-kinds are used internally to distinguish
60 between primitives, advanced or composite types.
61 """
62
63 ANY = enum.auto()
64 BOOL = enum.auto()
65 PRIM = enum.auto()
66 FLOAT = enum.auto()
67 PTR = enum.auto()
68 REF = enum.auto()
69 RV_REF = enum.auto()
70 ARR = enum.auto()
71 FUN = enum.auto()
72 SIG = enum.auto()
73 STRUCT = enum.auto()
74 MACRO = enum.auto()
75 ALIAS = enum.auto()
76 BLOCK = enum.auto()
77 NAMESPACE = enum.auto()
78 GENERIC = enum.auto()
79
80
81class VariableKind(enum.Enum):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected