chapi
CHAPI (Common Hierarchical Abstract Parser and Information Converter) streamlines code analysis by converting diverse language source code into a unified abstract model, simplifying cross-language development. Chapi 是一个通用层次抽象解析器与信息转换器,它可以将不同编程语言的源代码转换为统一的层次抽象模型。
File Explorer
Download Latest Version (.zip)- cd.yml
- ci.yml
- icon.png
- AggregateRoot.java
- AggregateRootA.java
- AggregateRootB.java
- Entity.java
- EntityB.java
- Provider.java
- Router.java
- ValueObject.java
- ValueObjectC.java
- ValueObjectD.java
- FakeRouter.java
- AggregateRootARepo.java
- Repository.java
- Main.java
- jacoco-conventions.gradle.kts
- build.gradle.kts
- settings.gradle.kts
- ArkTSLexer.g4
- ArkTSParser.g4
- ArkTSLexerBase.java
- ArkTSParserBase.java
- ArkTSAnalyser.kt
- ArkTSAstListener.kt
- ArkTSFullIdentListener.kt
- ArkTSIdentify.kt
- ArkTSTypeRefBuilder.kt
- EcmaImportHelper.kt
- ArkTSAnalyserTest.kt
- ArkTSCorpusCompatibilityTest.kt
- StructTest1.ets
- decorated-struct.ets
- corpus-manifest.json
- AllInOne.ets
- Ambient.d.ets
- ArkUIV2.ets
- Concurrency.ets
- CounterPage.ets
- Negative.ets
- build.gradle.kts
- README.md
- CLexer.g4
- CParser.g4
- CAnalyser.kt
- CAstBaseListener.kt
- CFullIdentListener.kt
- CFullIdentListenerTest.kt
- 1-helloworld.c
- 2-struct-function-pointer.c
- add.c
- BinaryDigit.c
- bt.c
- dialog.c
- FuncCallAsFuncArgument.c
- FuncCallwithVarArgs.c
- FuncForwardDeclaration.c
- FunctionCall.c
- FunctionPointer.c
- FunctionReturningPointer.c
- helloworld.c
- integrate.c
- ll.c
- ParameterOfPointerType.c
- pr403.c
- TypeCast.c
- .gitignore
- build.gradle.kts
- CPP14Lexer.g4
- CPP14Parser.g4
- CPP14ParserBase.java
- CPPAnalyser.kt
- CPPBasicIdentListener.kt
- CPPTypeRefBuilder.kt
- CPPBasicIdentListenerTest.kt
- and_keyword.cpp
- helloworld.cpp
- macro.cpp
- not_keyword.cpp
- or_keyword.cpp
- template_args_test.cpp
- code.h
- inheritance-tree.dot
- main.cpp
- LICENSE
- build.gradle.kts
- CSharpLexer.g4
- CSharpLexer.tokens
- CSharpParser.g4
- CSharpPreprocessorParser.g4
- CSharpLexerBase.java
- CSharpParserBase.java
- CSharpPreprocessorParserBase.java
- CSharpAnalyser.kt
- CSharpAstListener.kt
- CSharpFullIdentListener.kt
- CSharpTypeRefBuilder.kt
- CSharpAdvancedFeaturesTest.kt
- CSharpAstListenerTest.kt
- CSharpFullIdentListenerTest.kt
- hello.cs
- file-scoped-namespace.cs
- global-using.cs
- record.cs
- CartDto.cs
- CartProductDto.cs
- CartService.cs
- CheckOutResultDto.cs
- ICartService.cs
- CreditCardDto.cs
- CustomerDto.cs
- CustomerPurchaseHistoryDto.cs
- CustomerService.cs
- ICustomerService.cs
- EventDto.cs
- HistoryDto.cs
- HistoryService.cs
- IHistoryService.cs
- IProductService.cs
- ProductDto.cs
- ProductService.cs
- Diagram.cd
- Map.cs
- Cart.cs
- CartCreated.cs
- CartProduct.cs
- CheckOutIssue.cs
- CustomerCartSpec.cs
- ProductAddedCart.cs
- ProductInCartSpec.cs
- ProductRemovedCart.cs
- Country.cs
- CountryCreated.cs
- CreditCard.cs
- CreditCardAdded.cs
- CreditCardAvailableSpec.cs
- Customer.cs
- CustomerAlreadyRegisteredSpec.cs
- CustomerBulkIdFindSpec.cs
- CustomerChangedEmail.cs
- CustomerCheckedOutHandle.cs
- CustomerCheckOut.cs
- CustomerCreated.cs
- CustomerCreatedHandle.cs
- CustomerPurchaseHistoryReadModel.cs
- CustomerRegisteredSpec.cs
- ICustomerRepository.cs
- EmailTemplate.cs
- IEmailDispatcher.cs
- IEmailGenerator.cs
- INewsletterSubscriber.cs
- Product.cs
- ProductCode.cs
- ProductCodeCreated.cs
- ProductCreated.cs
- ProductIsInStockSpec.cs
- ProductReturnReasonSpec.cs
- Return.cs
- ReturnReason.cs
- CustomerPurchasedNProductsSpec.cs
- CustomerPurchasesSpec.cs
- Purchase.cs
- PurchasedProduct.cs
- CheckoutService.cs
- PaymentStatus.cs
- ProductState.cs
- TaxService.cs
- CountryTax.cs
- CountryTaxCreated.cs
- CountryTypeOfTaxSpec.cs
- TaxType.cs
- Settings.cs
- DomainEvent.cs
- DomainEventHandle.cs
- DomainEventRecord.cs
- DomainEvents.cs
- Handle.cs
- IAggregateRoot.cs
- IDomainService.cs
- IRequestCorrelationIdentifier.cs
- IDomainEventRepository.cs
- IRepository.cs
- IUnitOfWork.cs
- And.cs
- IExtensions.cs
- ISpecification.cs
- Negate.cs
- Or.cs
- SpecificationBase.cs
- MemDomainEventRepository.cs
- MemoryRepository.cs
- MemoryUnitOfWork.cs
- SmtpEmailDispatcher.cs
- StubDataCountryRepository.cs
- StubDataCountryTaxRepository.cs
- StubDataCustomerRepository.cs
- StubDataProductCodeRepository.cs
- StubDataProductRepository.cs
- StubEmailGenerator.cs
- WSNewsletterSubscriber.cs
- AssemblyInfo.cs
- ApplicationLayerInstall.cs
- DistributedInterfaceLayerInstall.cs
- DomainModelLayerInstall.cs
- InfrastructureLayerInstall.cs
- BootstrapConfig.cs
- FilterConfig.cs
- MappingConfig.cs
- RouteConfig.cs
- W3CWebRequestCorrelationIdentifier.cs
- WebApiConfig.cs
- WinsdorCompositionRoot.cs
- CartController.cs
- CustomerController.cs
- HistoryController.cs
- ProductController.cs
- Response.cs
- ResponseOfTReturn.cs
- AssemblyInfo.cs
- eCommerce.WebService.csproj
- Global.asax.cs
- .gitignore
- README.md
- AllInOneNoPreprocessor.cs
- HistoryService.cs
- ModernCSharpFeatures.cs
- build.gradle.kts
- Dart2Lexer.g4
- Dart2Parser.g4
- Dart2LexerBase.java
- DartAnalyser.kt
- DartAstListener.kt
- DartBasicIdentListener.kt
- DartFullIdentListener.kt
- DartAnalyserTest.kt
- DartFullIdentListenerTest.kt
- class_example.dart
- dart3_features.dart
- flutter_widget.dart
- hello_world.dart
- build.gradle.kts
- GoLexer.g4
- GoLexer.tokens
- GoParser.g4
- GoParserBase.java
- GoAnalyser.kt
- GoAstListener.kt
- GoFullIdentListener.kt
- GoTypeRefBuilder.kt
- GoAnalyserTest.kt
- GoFullIdentListenerTest.kt
- GoGenericsTest.kt
- GoMethodCallTest.kt
- GoNumberLiteralsTest.kt
- GoTypeRefTest.kt
- anonymousMethods.go
- arrayDecls.go
- arrayEllipsisDecls.go
- bufChan.go
- chan.go
- constDecl.go
- defers.go
- example.go
- foreachStmts.go
- forStmts.go
- function.go
- gostmts.go
- hardcodedPassword.go
- ill_but_correct.go
- interface_inheritance.go
- interfaces.go
- map_with_string.go
- maps.go
- method.go
- multiple_type_decl.go
- params.go
- promoted.go
- returnStmt.go
- select.go
- shortVarDecl.go
- sliceDecls.go
- strings.go
- struct_promotion.go
- struct_with_func_type.go
- structs.go
- switchesExpr.go
- switchesType.go
- typeAsserts.go
- varDecl.go
- weakHash.go
- helloworld.go
- struct_function.go
- build.gradle.kts
- README.md
- JavaLexer.g4
- JavaParser.g4
- JavaParserBase.java
- JavaAnalyser.kt
- JavaAstListener.kt
- JavaBasicIdentListener.kt
- JavaFullIdentListener.kt
- JavaTypeRefBuilder.kt
- JavaBasicIdentListenerTest.kt
- JavaFullIdentListenerTest.kt
- JavaIdentCallAppTest.kt
- JavaTypeRefTest.kt
- DemoController.java
- AllInOne11.java
- AllInOne17.java
- AllInOne7.java
- AllInOne8.java
- SourceBatch.java
- SqlGenerator.java
- CallAssertInClassTests.java
- build.gradle.kts
- KotlinLexer.g4
- KotlinLexer.tokens
- KotlinParser.g4
- UnicodeClasses.g4
- KotlinAnalyser.kt
- KotlinAstListener.kt
- KotlinBasicIdentListener.kt
- KotlinFullIdentListener.kt
- KotlinTypeRefBuilder.kt
- KotlinSpringCompatibleTest.kt
- KotlinAdvancedFeaturesTest.kt
- KotlinAnalyserTest.kt
- KotlinBasicIdentListenerTest.kt
- KotlinExtendedSyntaxTest.kt
- KotlinFullIdentListenerTest.kt
- KotlinFunctionCallTest.kt
- KotlinModernSyntaxTest.kt
- KotlinTypeRefTest.kt
- main.kt
- build.gradle.kts
- Protobuf2.g4
- Protobuf3.g4
- Protobuf2FullIdentListener.kt
- ProtobufAnalyser.kt
- ProtobufFullIdentListener.kt
- ProtobufAdvancedFeaturesTest.kt
- ProtobufAnalyserTest.kt
- ProtobufRealWorldTest.kt
- common.proto
- gpt-4o-user.proto
- gpt-o1-user.proto
- .gitignore
- build.gradle.kts
- PythonLexer.g4
- PythonLexer.tokens
- PythonParser.g4
- PythonLexerBase.java
- PythonParserBase.java
- PythonVersion.java
- PythonAnalyser.kt
- PythonAstBaseListener.kt
- PythonFullIdentListener.kt
- PythonTypeRefBuilder.kt
- Python314FeaturesTest.kt
- PythonAdvancedFeaturesTest.kt
- PythonAnalyserTest.kt
- PythonFullIdentListenerTest.kt
- builder_pattern_call.py
- class_call.py
- argument.py
- atom.py
- class_or_func_def_stmt.py
- classdef.py
- comprehension.py
- def_parameters.py
- dictorsetmaker.py
- expr.py
- expr_stmt.py
- for_stmt.py
- funcdef.py
- if_stmt.py
- import_stmt.py
- logical_test.py
- simple_stmt.py
- small_stmt.py
- subscript.py
- test.py
- testlist_comp.py
- tokens.py
- trailer.py
- try_stmt.py
- typedargslist.py
- varargslist.py
- while_stmt.py
- with_stmt.py
- yield_expr.py
- build.gradle.kts
- RustLexer.g4
- RustParser.g4
- RustLexerBase.java
- RustParserBase.java
- RustAnalyser.kt
- RustAstBaseListener.kt
- RustFullIdentListener.kt
- RustTypeRefBuilder.kt
- RustAnalyserTest.kt
- RustFullIdentListenerTest.kt
- RustTypeRefTest.kt
- comment.rs
- deno_core_runtime.rs
- hello.rs
- inlinepython_example.rs
- intellijrust_test_allinone.rs
- issue_1985_raw_string.rs
- leaf_vmessstream.rs
- literal.rs
- rustls_quic.rs
- ssrust_config.rs
- ssrust_ssserver.rs
- v1_46_0_split_float_literal.rs
- v1_46_0_split_float_literal.rs.tree
- v1_48_0_unsafe_mod.rs
- v1_53_0_or_pattern.rs
- v1_53_0_unicode_identifier.rs
- v1_56_0_open_range.rs
- build.gradle.kts
- Scala.g4
- ScalaAnalyser.kt
- ScalaAstBaseListener.kt
- ScalaFullIdentListener.kt
- ScalaFullIdentListenerTest.kt
- Story.scala
- class.scala
- class2.scala
- example1.scala
- example2.scala
- object.scala
- string.scala
- build.gradle.kts
- README.md
- Swift5Lexer.g4
- Swift5Parser.g4
- SwiftSupport.java
- SwiftSupportLexer.java
- SwiftAnalyser.kt
- SwiftFullIdentListener.kt
- SwiftTypeRefBuilder.kt
- SwiftAdvancedFeaturesTest.kt
- SwiftAnalyserTest.kt
- swiftui_app.swift
- build.gradle.kts
- Thrift.g4
- ThriftAnalyser.kt
- ThriftFullIdentListener.kt
- ThriftAdvancedFeaturesTest.kt
- ThriftAnalyserTest.kt
- build.gradle.kts
- TypeScriptLexer.g4
- TypeScriptParser.g4
- TypeScriptLexerBase.java
- TypeScriptParserBase.java
- EcmaImportHelper.kt
- TSIdentify.kt
- TypeScriptAnalyser.kt
- TypeScriptAstListener.kt
- TypeScriptFullIdentListener.kt
- TypeScriptTypeRefBuilder.kt
- EcmaImportHelperTest.kt
- GrammarV4MigrationTest.kt
- JsxTest.kt
- TSIdentifyTest.kt
- TypeScriptAnalyserTest.kt
- TypeScriptCallTest.kt
- TypeScriptFullIdentListenerTest.kt
- TypeScriptModernFeaturesTest.kt
- TypeScriptRegressionTest.kt
- TypeScriptTypeRefTest.kt
- index.d.ts
- AbstractClass.ts
- Class.ts
- Export.ts
- Function.ts
- Generic.ts
- GenericClass.ts
- GenericInterface.ts
- Interface.ts
- Module.ts
- Statement.ts
- Type.ts
- Variable.ts
- BadSmellThreshold.tsx
- build.gradle.kts
- README.md
- CodeAnnotation.kt
- CodeCall.kt
- CodeContainer.kt
- CodeDataStruct.kt
- CodeDependency.kt
- CodeExport.kt
- CodeField.kt
- CodeFunction.kt
- CodeImport.kt
- CodeMember.kt
- CodeModule.kt
- CodePackage.kt
- CodePackageInfo.kt
- CodePosition.kt
- CodeProject.kt
- CodeProperty.kt
- CodeTypeRef.kt
- Since.kt
- TopLevelScope.kt
- Expression.kt
- DomainConstants.kt
- Stack.kt
- Analyser.kt
- CodeAnnotationTest.kt
- CodeCallTest.kt
- CodeContainerTest.kt
- CodeDataStructTest.kt
- CodeFieldTest.kt
- CodeFunctionTest.kt
- CodeImportTest.kt
- CodeMemberTest.kt
- CodePackageInfoTest.kt
- CodeProjectTest.kt
- CodePropertyTest.kt
- CodeTypeRefTest.kt
- TopLevelScopeTest.kt
- ExpressionTest.kt
- StackTest.kt
- build.gradle.kts
- README.md
- TreeViewer.kt
- TreeViewerTest.kt
- build.gradle.kts
- CMake.g4
- CMakeAnalyser.kt
- CMakeBasicListener.kt
- CMakeBasicListenerTest.kt
- build.gradle.kts
- README.md
- TomlLexer.g4
- TomlParser.g4
- TomlAnalyser.kt
- TomlListener.kt
- TomlType.kt
- TomlAnalyserTest.kt
- build.gradle.kts
- README.md
- SourceAnalyser.kt
- StreamingAnalysisEngine.kt
- StreamingState.kt
- ChapiStreamingProcessor.kt
- ChapiStreamingTopology.kt
- KafkaStreamingState.kt
- StreamingEvents.kt
- ChapiStreamingApplication.kt
- StreamingAnalysisEngineTest.kt
- ChapiStreamingTopologyTest.kt
- build.gradle.kts
- compose.yaml
- README.md
- code-chunk.md
- code-linter.md
- dependency-visualization.md
- usecases.md
- _config.yml
- CNAME
- home.md
- logo.svg
- quick-start.md
- gradle-wrapper.jar
- gradle-wrapper.properties
- chapi-module.gradle
- publications.gradle
- compile-antlr.sh
- compile-cpp.sh
- compile-groovy.sh
- compile-typescript.sh
- .adr.json
- .codeclimate.yml
- .editorconfig
- .gitattributes
- .gitignore
- .travis.yml
- build.gradle.kts
- CHANGELOG.md
- gradle.properties
- gradlew
- gradlew.bat
- LICENSE
- Makefile
- README.md
- settings.gradle.kts
# Installation Guide
1. Get the code
git clone https://github.com/phodal/chapi
Downloads the entire project code from GitHub to your computer.
cd chapi
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose -f chapi-streaming/compose.yaml up -d --build
Runs the command against the services defined in the compose file.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. Gradle (Java/Kotlin)
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- JDK (Java) Required to build and run Java/Kotlin projects.
- Gradle If the repo includes gradlew (Gradle Wrapper), you don't need to install Gradle separately.
./gradlew build
Builds the project using Gradle.
A BUILD SUCCESSFUL message means it worked. The output is created under build/.
4. Make
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make
Compiles the code based on the generated build configuration to produce an executable.
If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation
Was this content helpful?
(0 ratings)
