Installation guide

Install code-lang

code-lang is currently distributed as source. Build it from source with Cargo in under a minute. Pre-built binaries are coming.

Build from source

Prerequisites

You need Rust (stable) installed. If you don't have it:

Install Rustrustup.rs
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Steps

1

Clone the repository

git clone https://github.com/Walon-Foundation/code-lang.git
2

Build in release mode

cd code-lang
cargo build --release

This produces a single binary at target/release/code-lang.

3

(Optional) Add to PATH

Linux / macOS
# copy to a directory already on your PATH
sudo cp target/release/code-lang /usr/local/bin/

# or add the build output to PATH in your shell config
export PATH="$PATH:/path/to/code-lang/target/release"
4

Verify the install

code-lang --version   # (if on PATH)
# or
./target/release/code-lang --version

Usage

Run the REPL

code-lang
>> let x = 10;
>> x * x;
100
>> exit

Run a script

code-lang hello.cl

Scripts must use the .cl extension.

Pre-built binaries — coming soon

We're working on distributing pre-built binaries for Linux, macOS, and Windows so you won't need Rust installed. Watch the releases page or the changelog for updates.

Next steps

Getting started

Write your first script.

Language reference

Full syntax guide.

Standard library

All 12 built-in modules.