Skip to content
@zevic-lang

Zevic

The Zevic Programming Language

Zevic

Zevic

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 / Result and ?).
  • C interop built in: call C with extern "C", expose functions with export "C", and build C sources together with Zevic.
  • Garbage collected: the Boehm GC is bundled.
  • Self-hosted: zevic1 is written in Zevic and rebuilds itself to byte-identical LLVM IR.
  • Batteries included: zevic (compiler), zevpm (package manager), zevfmt (formatter), test blocks, 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.

Install

See Install for Ubuntu / Debian (apt), Windows (winget), macOS, Linux archives and Termux.

Repositories

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)

Get involved

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 のコードをそのまま使える、小さくて書きやすいネイティブ言語です。詳しくは公式サイトをご覧ください。

Pinned Loading

  1. zevic zevic Public

    The Zevic Programming Language

    LLVM 2

Repositories

Showing 10 of 12 repositories

Top languages

Loading…

Most used topics

Loading…