MCPcopy Index your code
hub / github.com/Voxon-Development/zeta-lang

github.com/Voxon-Development/zeta-lang @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,097 symbols 3,639 edges 96 files 105 documented · 10%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Introduction

High-performance, fearless concurrency, and memory safe systems programming without the pain.

Example:

public enum GameError {
    Game { msg: String },
    ParseFailed { err: ParseFailedError },
    Io { err: IOError }
}    

public interface Printable {    
    fn print() throws IOError -> void    
}    

public struct GuessGame {    
    target: i32
}

impl GuessGame {
    fn play_game(&this) throws GameError -> void {    
        for (let mut i = 0; i < 10; i += 1) {    
            input := try std::io.out.readln("Enter your guess: "");
            guess := try input.parse<i32>();
            match guess {    
                g if g == this.target => {    
                    try std::io.out.println("Correct! You win!");
                    return    
                }    
                g if g < this.target => try std::io.out.println("Too low!"),  
                g if g > this.target => try std::io.out.println("Too high!"),
                _ => unsafe { assume_unreachable() }
            }    
        }
        throw GameError.Game("Out of attempts! Game over.");
    }
} 

impl Printable for GuessGame {    
    fn print() throws IOError -> void {    
        try std::io.out.println("Welcome to Guess the Number!")    
    }    
}    

fn random_number(min: i32, max: i32) throws RandomNumberError -> i32 {    
    return min + (try std::random.next_int() % (max - min + 1))    
}    

fn main() throws GameError, RandomNumberError -> void {    
    let game: Box<GuessGame> = Box.new(GuessGame { target: try random_number(1, 10), attempts: 0 });

    try *game.print()
    *game.play_game() else (err) {
        match err {
            case Game { msg } => {
                try std::io.out.println(msg);
            },
            case Io { err } => {
                try std::io.out.println("\{}", err);
            },
            case ParseFailed { err } => {
                try std::io.out.println("Please input a real number!");
            }
        }
    };

    try std::io.out.println("Thanks for playing!");
}

Contributing

We’re excited you want to contribute to Zeta-Lang!

How to Contribute:

  1. Report Bugs: Open an issue on GitHub if you encounter a bug or unexpected behavior. Include a minimal reproducible example.
  2. Submit Pull Requests:
  3. Fork the repository and create a feature branch (git checkout -b feature/YourFeature).
  4. Write clear, concise, and well-documented code.
  5. Include tests for new features or bug fixes.
  6. Ensure code passes existing tests before submitting.
  7. Code Style: Follow consistent formatting and naming conventions. Use snake_case for variables, PascalCase for types, and proper indentation.
  8. Documentation: Update docs when adding features or changing behavior.
  9. Community Etiquette: Be respectful and collaborative. We’re here to build a language together.

We welcome contributions of all sizes, from fixing typos to implementing major features.

Extension points exported contracts — how you extend this code

Backend (Interface)
Trait defining code generation interface [1 implementers]
engraver-assembly-emit/src/backend.rs
SsaPass (Interface)
(no doc) [1 implementers]
smelter-optimizer/src/pass.rs

Core symbols most depended-on inside this repo

clone
called by 299
zeta_utilities/src/arena.rs
expect
called by 180
ir/src/tokens.rs
insert
called by 139
sentinel-typechecker/src/type_context.rs
alloc_value_immutable
called by 132
zeta_utilities/src/bump.rs
get
called by 123
ir/src/tokens.rs
intern
called by 110
zeta_utilities/src/string_pool.rs
peek
called by 98
ir/src/tokens.rs
len
called by 78
ir/src/hir.rs

Shape

Method 563
Function 353
Class 125
Enum 54
Interface 2

Languages

Rust100%

Modules by API surface

ir/src/ast.rs78 symbols
codex-dependency-graph/src/dep_graph.rs63 symbols
zeta_utilities/src/arena.rs59 symbols
ir/src/hir.rs53 symbols
codex-dependency-graph/src/dep_graph_tests.rs45 symbols
sentinel-typechecker/src/type_checker.rs44 symbols
scribe-parser/tests/parser/functions.rs37 symbols
sentinel-typechecker/src/type_context.rs29 symbols
zeta_utilities/src/string_pool.rs28 symbols
zeta_utilities/src/bump.rs27 symbols
ir/src/diagnostics_context.rs26 symbols
ir/src/ssa_ir.rs25 symbols

For agents

$ claude mcp add zeta-lang \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact