Code analysis tool for cross-language development
Top 89.1% on sourcepulse
CHAPI (Common Hierarchical Abstract Parser and Information Converter) is a tool designed to parse source code from various programming languages and convert it into a unified abstract syntax tree (AST) model. This facilitates cross-language code analysis, enabling developers to understand and manage complex, multi-language codebases more effectively.
How It Works
CHAPI employs a language-specific parser for each supported language, leveraging ANTLR grammars for syntax analysis. It then transforms the parsed code into a common, hierarchical data structure (CodeContainer
, CodeDataStruct
, CodeFunction
, etc.) that represents the code's architecture and components. This abstraction layer simplifies tasks like dependency analysis, architecture governance, and code quality assessment across different programming languages.
Quick Start & Requirements
chapi-ast-<language>
and chapi-domain
to your project's dependencies.BlogPO
class../gradlew build
.Highlighted Details
Maintenance & Community
feat(java): <message>
).Licensing & Compatibility
Limitations & Caveats
jcpp
.warpTargetFullType
.8 months ago
1 day