A small native language that uses C code as it is. Zevic turns source code into LLVM IR and lets clang build and link it. The compiler is written in Zevic itself.
Website: zevic-lang.github.io (日本語 / English)
module Main
import Zevic.Console
fn Main() {
Console.Println("Hello, World!")
}
zevic hello.zev -o hello && ./hello- Easy to write: explicit types, no implicit conversions, no null, no exceptions (
Option/Resultand?). - C interop built in: call C with
extern "C", expose functions withexport "C", and build C sources together with Zevic. - Garbage collected: the Boehm GC is bundled.
- Self-hosted:
zevic1is written in Zevic and rebuilds itself to byte-identical LLVM IR. - Batteries included:
zevic(compiler),zevpm(package manager),zevfmt(formatter),testblocks, and a standard library of 30+ modules.
Status: version 0.4.x. It works, but it is still in development, so the language and the library API may change before 1.0.
See Install for Ubuntu / Debian (apt), Windows (winget), macOS, Linux archives and Termux.
| Repository | What it contains |
|---|---|
zevic |
Compiler, zevpm, zevfmt, runtime, standard library, language specification, proposals |
examples |
Sample programs with their expected output |
zevic-lang.github.io |
The website (Jekyll) |
zevic-c |
The first compiler, written in C (archived) |
Bug reports, small fixes, tests, examples and feedback on the specification are all welcome. Read CONTRIBUTING.md first. Language changes go through proposals.
Zevic は、C のコードをそのまま使える、小さくて書きやすいネイティブ言語です。詳しくは公式サイトをご覧ください。
