2 releases
| new 0.1.4 | Feb 16, 2026 |
|---|---|
| 0.1.0 | Feb 14, 2026 |
#323 in Programming languages
590KB
2K
SLoC
Contains (ELF exe/lib, 1MB) main, (ELF exe/lib, 630KB) lexer
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.exeinstead of./corvo7
Dependencies
~1β1.5MB
~27K SLoC