Localized V2 rewrite for this language is in progress. Showing English-first content for now.

快速开始

安装编译器,运行你的第一个 .sio 程序,并了解基础用法。

快速开始

Sounio 程序是 .sio 文件,通过 souc 编译器进行类型检查和运行。

1) 安装 souc

从源码构建(推荐)

git clone https://github.com/sounio-lang/sounio.git
cd sounio

# Build the compiler
cargo build -p souc --release

# Run it from the repo
./target/release/souc --version

可选: 将 souc 放到 PATH 中

sudo cp ./target/release/souc /usr/local/bin/souc

2) Hello World

创建 hello.sio:

fn main() with IO {
    println("Hello, Sounio!")
}

类型检查并运行:

souc check hello.sio
souc run hello.sio

3) 下一步