Coverage for src/renaissance/syntax_tree/semantic_kind.py: 100%

26 statements  

« prev     ^ index     » next       coverage.py v7.16.1, created at 2026-10-02 13:12 +0000

1"""AI: Enumeration of language-agnostic semantic kinds used to classify AST nodes.""" 

2 

3from enum import StrEnum 

4 

5 

6class SemanticKind(StrEnum): 

7 """AI: Enumerate the language-agnostic semantic kinds used to classify AST nodes.""" 

8 

9 NODE = "node" 

10 TRANSLATION_UNIT = "translation_unit" 

11 STATEMENT = "statement" 

12 EXPRESSION = "expression" 

13 DECLARATION = "declaration" 

14 DEFINITION = "definition" 

15 NAME = "name" 

16 ATTRIBUTE = "attribute" 

17 LITERAL = "literal" 

18 CALL = "call" 

19 FUNCTION = "function" 

20 CLASS = "class" 

21 ASSIGNMENT = "assignment" 

22 BINARY_OPERATION = "binary_operation" 

23 UNARY_OPERATION = "unary_operation" 

24 CONDITIONAL = "conditional" 

25 LOOP = "loop" 

26 RETURN = "return" 

27 IMPORT = "import" 

28 PARAMETER = "parameter" 

29 COMMENT = "comment" 

30 GLOBAL = "global" 

31 NONLOCAL = "nonlocal" 

32 MATCH = "match"