Skip to content

Latest commit

ย 

History

History
55 lines (43 loc) ยท 1.66 KB

File metadata and controls

55 lines (43 loc) ยท 1.66 KB

Cedrus Programming Language

Cedrus is a high-performance, statically typed, compiled programming language designed for simplicity, safety, and speed. Inspired by the expressive syntax of Rust and the raw power of C++, Cedrus leverages the Go toolchain to produce lightweight, native executables.

๐Ÿš€ Key Features

  • Modern Syntax: Clean, Rust-inspired syntax with let, const, and fn keywords.
  • Strongly Typed: Catch errors at compile-time with a robust static type system.
  • Compiled Performance: Transpiles to Go and compiles to native machine code (EXE).
  • Lightweight: Minimal runtime overhead and fast compilation times.
  • Medium-Level Control: High-level abstractions with the performance of a systems language.

๐Ÿ› ๏ธ Quick Start

Prerequisites

Installation

Clone the repository and build the Cedrus CLI tool:

git clone https://github.com/youruser/cedrus.git
cd cedrus
go build -o cedrus.exe cmd/cedrus/main.go

Your First Program

Create a file named hello.ced:

fn main() {
    let name: string = "World";
    print("Hello, Cedrus", name, "!");
}

Running & Building

# Run immediately
./cedrus.exe run hello.ced

# Build a native executable
./cedrus.exe build hello.ced
./hello.exe

๐Ÿ“š Documentation

For a complete guide on syntax, types, and features, see DOCS.md.

๐Ÿ—บ๏ธ Roadmap

  • Structs and Custom Types
  • Package/Module System
  • Memory Management Improvements
  • Standard Library Expansion (HTTP, JSON, File IO)

๐Ÿ“„ License

Cedrus is released under the Apache 2.0 License.