

# 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:
```typescript
// mutable variable
var variable1 = 10;
// immutable variable
const variable2 = 28;
```
Example with type annotation (recommended):
```typescript
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:
```typescript
fun int add(int a, int b) {
return a + b;
}
```
---
### Loops
While loops are simple and safe:
```typescript
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:
- [Rust](https://www.rust-lang.org/tools/install) installed
- [Git](https://git-scm.com/) installed
---
## π₯ installation
1οΈβ£ *Clone* the *repository*:
```bash
git clone https://github.com/leozin17892-rskotpy/corvo7.git
cd corvo7
```
2οΈβ£ *Compile* the compiler:
```bash
cargo build --release
```
3οΈβ£ Test if it's working:
```bash
./target/release/corvo7 --version
```
> Windows: use ```corvo7.exe``` instead of ```./corvo7```