Install Croft.
One line. It downloads the latest release, checks it against its published checksum, and puts croft in ~/.croft/bin.
sh <(curl -fsSL https://croftlang.com/sh)
irm https://croftlang.com/ps1 | iex
Check it worked
Open a new terminal and ask croft for its version. If it can't be found, the installer printed the line to add to your shell's profile. On Windows it adds itself to your PATH.
Then run your first program: Hello world is chapter one.
# prints the version, such as croft 0.1.0
$ croft version
# runs chapter one's program
$ croft run hello.croft
Good to know
A C compiler
Croft writes C89, and croft run builds it with $CC, or cc if that isn't set.
Updating
Run the installer again. CROFT_VERSION=0.1.0 picks a release, CROFT_INSTALL_DIR a folder.
Every release
Archives for Linux, macOS and Windows, each with a SHA-256 checksum, if you'd rather do it by hand.
Editors
Both extensions give you highlighting, plus errors, hover, go to definition and completion as you type, through croft lsp. They start the croft on your PATH, so install Croft first, then restart the editor so it sees the new PATH.
VS Code
Install Croft from the Marketplace, or search for Croft in the Extensions view. From a terminal:
$ code --install-extension croftlang.croft
If croft lives somewhere else, set croft.server.path in your settings.
Zed
Croft is on its way to Zed's extensions. Until it's there, install it from a clone of the repository:
$ git clone https://github.com/croftlang/lang
Then run zed: install dev extension and pick the clone's lang/editors/zed folder.
From source
Got Rust? Cargo can build the latest main for you. It's the newest Croft there is, warts and all.
$ cargo install --git https://github.com/croftlang/lang croft_cli