Download

Larva

The compiler, build tool and package manager of Antril, with its standard library and the Antril language pack.

The first release is on its way

Larva’s installers for Windows, Linux and macOS will be published here as soon as the first public release is out.

In the meantime you can follow the project on GitHub.

Install

In one line

The fastest way: these commands download the latest Larva from this site, check its SHA-256 and run its installer for your user.

Windows (PowerShell)

PowerShell
irm https://antril.org/install.ps1 | iex

Linux and macOS

Terminal
curl -fsSL https://antril.org/install.sh | sh

Read them first if you like: install.ps1, install.sh. Options go to the installer: curl -fsSL https://antril.org/install.sh | sh -s -- --no-path; on Windows set $env:LARVA_INSTALL_DIR or $env:LARVA_INSTALL_ARGS first. Checksums: SHA256SUMS.txt.

Windows

Run LarvaSetup-<version>-win-x64.exe. It installs Larva for your user, without administrator rights, into %LOCALAPPDATA%\Programs\Larva. It puts larva on your PATH, lists Larva in Installed apps with its uninstaller, and shows Larva’s files with their icons. For an unattended install:

Terminal
LarvaSetup-<version>-win-x64.exe --silent
larva --version

Linux and macOS

Unpack the archive and run its install.sh. It installs Larva for your user and puts a larva command in ~/.local/bin; ./install.sh --help lists its options.

Terminal
tar -xzf Larva-<version>-linux-x64.tar.gz
cd Larva-<version>-linux-x64
./install.sh
larva --version

Then

Create and run your first program, with the documentation as your guide:

Terminal
larva new Console-App Hello --lang antril
cd Hello
larva run
Hello from Larva!

Editor

In Visual Studio Code, the Larva extension brings the language server (errors as you type, completion, navigation), .queen projects and the build commands. The Antril extension brings the language’s syntax, snippets and icons. Installing Antril installs Larva with it.

Optional tools

  • Native executables are linked by the MSVC build tools on Windows, and by the system’s C compiler on Linux and macOS.
  • larva bind preprocesses C headers with clang when it is installed.
  • WebAssembly programs run in Node or a browser.
Esc