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) 次のステップ