Skip to content

Walon-Foundation/code-lang

Repository files navigation

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.

About

Code-Lang is a modern, interpreted programming language written in Go. It began as an implementation following the excellent book "Writing An Interpreter In Go" by Thorsten Ball, and has since evolved with additional features and custom extensions.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages