Atlas 77 is distributed via cargo. Make sure you have the Rust toolchain (including cargo) installed — see Rust installation.
Once Rust is installed, install Atlas 77 from crates.io:
cargo install atlas_77
There is currently no installer script; use the Rust toolchain to install and update Atlas 77.
Alternatively, you can compile Atlas 77 from source directly on GitHub:
git clone https://github.com/atlas77-lang/Atlas77.git
cd Atlas77
cargo build --release
# the built binary will be at target/release/atlas_77
Copy the release binary into a folder on your PATH (for example /usr/local/bin) or run it from target/release.
Create a new project and build:
atlas_77 init my-project
cd my-project
atlas_77 build
These examples target the v0.6.0 development branch.
import std::io;
fun main() {
println("Hello, Atlas 77 v0.6");
}
import std::fs;
import std::io;
fun main() {
let my_file = new File("data.txt");
my_file.open();
my_file.write("Hello, file!\n");
println(my_file.contents());
}