#compiler #toy-language #parser

bin+lib corvo7

A toy programming language compiler written in Rust

2 releases

new 0.1.4 Feb 16, 2026
0.1.0 Feb 14, 2026

#323 in Programming languages

MIT license

590KB
2K SLoC

Contains (ELF exe/lib, 1MB) main, (ELF exe/lib, 630KB) lexer

Build Version

Corvo7 🐦

Welcome to this project! Corvo7 is a small compiled language made for fun, speed, and safety.


What is Corvo7 ❓

It's a compiled language I made for fun.

The compiler generates C code (mainly using Clang).

The compiler itself is written in Rust along with the supporting tools.

Corvo7 aims to be fast, simple, and safe, with strong typing and minimal overhead.


Syntax 🧩

Its syntax is designed to be simple and concise.

Let's start with variable declarations.

Variables

Corvo7 Has 2 types of variables:

  • const β†’ Immutable by definition

  • var β†’ Mutable by definition

Example without type annotation:

// mutable variable
var variable1 = 10;
// immutable variable
const variable2 = 28;

Example with type annotation (recommended):

var int variable1 = 10;
const int variable2 = 28;

πŸ’‘ Tip: If you don’t annotate a type, Corvo7 will infer it automatically. You can also explicitly define types like 19u for u8.


Functions

Functions are declared with fun:

fun int add(int a, int b) {
    return a + b;
}

Loops

While loops are simple and safe:

var int i = 0;
var int sum = 0;

while(i < 10){
    sum += i;
    i += 1;
}
print(sum);

Corvo7 is super fast for loops and numeric operations, even faster than Python for similar code.


Advantages

  • Compiled & fast β†’ executes almost instantly

  • Strong typing β†’ reduces runtime errors

  • No manual memory management β†’ Rust handles everything in the compiler

  • Simple syntax β†’ easy to read and write


Future Features

Classes with single inheritance

Static & class methods

More standard library features


πŸš€ Requirements

Before installing it, you need to have:


πŸ“₯ installation

1️⃣ Clone the repository:

git clone https://github.com/leozin17892-rskotpy/corvo7.git
cd corvo7

2️⃣ Compile the compiler:

cargo build --release

3️⃣ Test if it's working:

./target/release/corvo7 --version

Windows: use corvo7.exe instead of ./corvo7

Dependencies

~1–1.5MB
~27K SLoC