Coverage for src/renaissance/syntax_tree/semantic_kind.py: 100%
26 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-15 10:34 +0000
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-15 10:34 +0000
1# Copyright (C) 2024-2026 TNO
2#
3# Licensed under the terms specified in the LICENSE file in the root directory
4# of this repository, also available at:
5# https://github.com/TNO/Renaissance.Py/blob/main/LICENSE
7"""AI: Enumeration of language-agnostic semantic kinds used to classify AST nodes."""
9from enum import StrEnum
12class SemanticKind(StrEnum):
13 """AI: Enumerate the language-agnostic semantic kinds used to classify AST nodes."""
15 NODE = "node"
16 TRANSLATION_UNIT = "translation_unit"
17 STATEMENT = "statement"
18 EXPRESSION = "expression"
19 DECLARATION = "declaration"
20 DEFINITION = "definition"
21 NAME = "name"
22 ATTRIBUTE = "attribute"
23 LITERAL = "literal"
24 CALL = "call"
25 FUNCTION = "function"
26 CLASS = "class"
27 ASSIGNMENT = "assignment"
28 BINARY_OPERATION = "binary_operation"
29 UNARY_OPERATION = "unary_operation"
30 CONDITIONAL = "conditional"
31 LOOP = "loop"
32 RETURN = "return"
33 IMPORT = "import"
34 PARAMETER = "parameter"
35 COMMENT = "comment"
36 GLOBAL = "global"
37 NONLOCAL = "nonlocal"
38 MATCH = "match"