Coverage for src/renaissance/syntax_tree/__init__.py: 100%
13 statements
« prev ^ index » next coverage.py v7.17.0, created at 2026-11-16 16:04 +0000
« prev ^ index » next coverage.py v7.17.0, created at 2026-11-16 16:04 +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: Language-agnostic AST abstraction layer (finder, rewriter, processor) used by all parser integrations."""
9from renaissance.syntax_tree.ast_factory import ASTFactory
10from renaissance.syntax_tree.ast_finder import ASTFinder
11from renaissance.syntax_tree.ast_node import ASTNode, ASTReference, VisitorResult
12from renaissance.syntax_tree.ast_processor import ASTProcessor
13from renaissance.syntax_tree.ast_refactor_actions import ASTRefactorActions
14from renaissance.syntax_tree.ast_rewriter import ASTRewriter
15from renaissance.syntax_tree.ast_shower import ASTShower
16from renaissance.syntax_tree.batch_ast_processor import AST_FACTORY_AND_ATU, Action, BatchASTProcessor, IterableProvider
17from renaissance.syntax_tree.match_finder import MatchFinder, PatternMatch
18from renaissance.syntax_tree.recipe_ast_processor import RecipeASTProcessor, after_step, final_action, recipe_step
19from renaissance.utils.text_utils import TextUtils
21# isort: split
22# This import must come after the ones above: renaissance.integrations.clang (imported via
23# cpp_utils) imports back from renaissance.syntax_tree (ASTFinder, ASTNode,
24# ASTReference), so those names must already be bound in this module's namespace
25# before cpp_utils is loaded, or the circular import fails.
26from renaissance.integrations.clang.cpp_utils import CPPUtils
28__all__ = [
29 "AST_FACTORY_AND_ATU",
30 "ASTFactory",
31 "ASTFinder",
32 "ASTNode",
33 "ASTProcessor",
34 "ASTRefactorActions",
35 "ASTReference",
36 "ASTRewriter",
37 "ASTShower",
38 "Action",
39 "BatchASTProcessor",
40 "CPPUtils",
41 "IterableProvider",
42 "MatchFinder",
43 "PatternMatch",
44 "RecipeASTProcessor",
45 "TextUtils",
46 "VisitorResult",
47 "after_step",
48 "final_action",
49 "recipe_step",
50]