Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.06 KB

File metadata and controls

57 lines (39 loc) · 1.06 KB

code-lang

A general-purpose interpreted programming language written in Rust. Clean syntax, first-class functions, structs, a module system, and a growing standard library.

Status: Active development — core language is functional, not production-ready.

Install

Requires Rust (stable).

git clone https://github.com/Walon-Foundation/code-lang.git
cd code-lang
cargo build --release

Use

# REPL
./target/release/code-lang

# Run a script
./target/release/code-lang hello.cl

Quick example

import "fmt";
import "math";

let greet = fn(name) {
    fmt.print("Hello, " + name + "!");
};

greet("world");
fmt.print("sqrt(16) =", math.sqrt(16));

Documentation

Full language reference and stdlib docs: docs/

Project layout

code-lang/
├── src/        Rust source (lexer, parser, evaluator, stdlib, repl)
├── legacy/     Original Go implementation (reference)
├── docs/       Docs website (Next.js)
└── Cargo.toml

License

MIT — see LICENSE.