Skip to content

zed-coding/zed-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zed Programming Language

GitHub contributors GitHub stars GitHub issues GitHub license Latest Release Build Status

A simple programming language that compiles to x86_64 assembly, featuring functions, control flow, strings, and basic arithmetic operations.

Quick Start

# Clone the repository
git clone https://github.com/zed-coding/zed-lang
cd zed-lang

# Build everything
make

# Create a new project
zed new my-project
cd my-project

# Write some code in src/main.zed
println("Hello from Zed!\n");

# Build and run
zed run

Features

  • Simple and clean syntax
  • Functions with recursion support
  • Control flow (if/else, while)
  • String literals with escape sequences
  • 64-bit integer arithmetic
  • Top-level code execution
  • Detailed error messages

Example

fn factorial(n) {
    if (n < 2) {
        return 1;
    }
    return n * factorial(n - 1);
}

println("Calculating factorial of 5:\n");
result = factorial(5);
println(result);
println("\n");

Documentation

For detailed information about the language, build system, and tools, see docs/docs.md.

Contributing

We welcome contributions! Please see our Contributing Guidelines for details on how to:

  • Build from source
  • Submit changes
  • Report issues
  • Add features
  • Improve documentation

Prerequisites

  • Rust compiler and Cargo
  • GNU Assembler (as)
  • GNU Linker (ld)

VS Code Extension

Install our VS Code extension for:

  • Syntax highlighting
  • Bracket matching
  • Auto-closing pairs
  • Comment toggling
  • Multi-line comment support

License

This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.

Copyright 2024 The Zed Programming Language Authors.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you shall be licensed under the Apache License, Version 2.0, without any additional terms or conditions.

Project Status

Zed is currently in active development. While it's stable enough for learning and experimentation, we recommend against using it in production environments at this time.

Author

Voltaged (VoltagedDebunked) Email: rusindanilo@gmail.com

Releases

No releases published