chapi

(★ 315)

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 是一个通用层次抽象解析器与信息转换器,它可以将不同编程语言的源代码转换为统一的层次抽象模型。

  • .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 Recommended
Prerequisites
  • 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)

Medium
Prerequisites
  • 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

Medium
Prerequisites
  • 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