Skip to content

Refactor#10

Merged
sentomk merged 9 commits intomainfrom
refactor
Dec 1, 2025
Merged

Refactor#10
sentomk merged 9 commits intomainfrom
refactor

Conversation

@sentomk
Copy link
Owner

@sentomk sentomk commented Dec 1, 2025

replace Doxygen comments with Google C++ style comments

sentomk and others added 9 commits November 28, 2025 02:22
Restructure the core pattern matching components from DSL-based layout
to a more organized engine architecture. Changes include:

- Replace match_builder with engine/builder and engine/match modules
- Add forward declarations header (fwd.h)
- Move implementation details to engine/detail subdirectory
- Remove legacy dsl/case_expr and dsl/operators headers

This improves code organization by separating builder and match
functionality while maintaining a clearer separation between
interface and implementation details.
Reorganized the core module's namespace structure from ptn::dsl to ptn::core::dsl for better logical grouping. Added new common headers (diagnostics, eval, optimize, common_traits) to the CMakeLists installation. Updated namespaces in case_expr.hpp and operators.hpp files. Removed NAMESPACE export from CMake configuration. This refactoring improves code organization and clarifies the module hierarchy.
Move pattern-related traits (pattern_like concept, is_pattern, binding_args) from common_traits.hpp to the pattern/base/fwd.h module. This reorganization improves code modularity by placing pattern-specific abstractions in their dedicated module, reducing coupling between common utilities and pattern implementations. Updated references in diagnostics.hpp and common_traits.hpp to use the new location.
Update pattern matching to pass the subject as the first argument to handlers by concatenating it with bound arguments using tuple_cat. This change requires modifications to type traits to reflect the new invocation signature and enhances the pattern matching consistency across different handler types.
- Reorganize headers into logical modules: base/, meta/, pattern/, core/
- Update project version from 0.4.1 to 0.5.0
- Refactor namespace structure from ptn::pattern to ptn::pat
- Move pattern base classes to dedicated pattern/base/ directory
- Consolidate meta utilities into base/, dsa/, and query/ subdirectories
- Remove benchmark_complex.cpp and update benchmark includes
- Fix CMake configuration for proper install paths
Replace block Doxygen-style documentation comments with line comments throughout the codebase. This change standardizes comment formatting and improves code readability while maintaining all existing documentation content. The changes affect files in core, engine, pattern, and utility modules.
@sentomk sentomk merged commit 19bca7c into main Dec 1, 2025
0 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant