Tentang
π CLAP β zero-setup C/C++ compiler frontend. C Like A Python, simple as clap.
Pembelajaran dan pendidikanPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- Mengumpulkan riwayat
- dalam 15 hari
- Mengumpulkan riwayat
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asliπ CLAP
Compile and run C/C++ without installing a compiler.
English | Π ΡΡΡΠΊΠΈΠΉ

One pip install, and clap run main.c just works β on a fresh Windows box, a bare Linux server, or a new Mac. CLAP downloads a pinned, checksum-verified clang toolchain into your user cache the first time you build, then gets out of the way. No Visual Studio installer, no MinGW mirrors, no PATH editing, no administrator anything.
And when the project grows past one file, it grows with you instead of forcing a build system on you: tests that run themselves, libraries added in one word, watch mode, cross-compilation, static binaries.
60 seconds
pip install clap-compiler
clap init hello && cd hello
clap run # first run fetches the pinned toolchain; everything after is instant
Or the rustup-style one-liner β no Python needed on Windows, it brings its own:
irm https://bratan-corp.github.io/clap/install.ps1 | iex # Windows PowerShell
curl -fsSL https://bratan-corp.github.io/clap/install.sh | sh # Linux/macOS
Alternatives: self-contained portable zip, scoop install clap/clap-compiler (bucket), and a VS Code extension.
What you get
- Zero-setup toolchain β real clang (via zig cc), pinned and SHA-256-verified, living in your user cache
clap runimmediacy β compile and run in one command;--watchrebuilds and restarts as you type- Tests out of the box β doctest bootstraps itself: write
TEST_CASE, runclap test, get filtered/parallel/JUnit runs - Libraries in one word β
clap add sqlitevendors it hash-pinned, compiled with zero flags;clap updaterefreshes pins as the registry moves - Cross-compile as a non-event β Windows
.exefrom Linux, dependency-free static musl binaries, even WebAssembly;clap distpacks per-platform release archives + checksums in one command - Editor integration β VS Code extension with native Test Explorer and F5 debugging;
compile_commands.jsonfor clangd/neovim/CLion - Honest output β human-readable by default, stable
--jsonfor scripts and agents
Why not just gcc main.c?
Fair question β if gcc is already installed, one file genuinely is that simple, and you don't need CLAP for it. But a fresh machine has no gcc (Windows never shipped one), and one file is where the questions start, not where they end: the second file, the first test, the first library, the static binary for a server. CLAP is for everything after gcc main.c stops being the whole story. Already happy with your CMake/Meson setup? Keep it β clap cmake . drives existing CMake projects with the pinned toolchain.

Documentation
- Tutorial β your first ten minutes, zero to tested project
- Command reference β every command, flag, template, and profile
- Documentation index β all guides in one place
- Honest comparison β why not gcc / CMake / Meson / xmake, straight answers
- Examples β runnable projects from hello-world to SQLite-as-a-dependency
- Project site β demo videos, measured benchmarks, honest FAQ (ΡΡΡΡΠΊΠ°Ρ Π²Π΅ΡΡΠΈΡ)
- Guides: library recipes Β· IDE integration Β· troubleshooting Β· platform validation
Status
Tested in CI on Windows, Linux, and macOS (285+ tests), plus native validation on real machines. MIT licensed. Contributions welcome β see development in the reference.
Jelajahi proyek terkait
Memuatβ¦