Getting Started
There are several options to install the Metro Compiler.
Install Via Package Manager#
At the moment, we only provide a package for Arch Linux.
Arch Linux#
You can obtain a prebuilt Arch Linux package from the latest release on GitHub.
- Download metroc-$VERSION-1-x86_64.pkg.tar.zst
- Install using Pacman:
- You can use the compiler at /usr/bin/metroc
Install the Binary#
You can download a precompiled binary for Linux AMD64 operating systems from the latest release on GitHub.
Build From Source#
If your operating system is not supported, or you would like to develop on the compiler itself, than you can build Metro from source.
You can get a copy of the compiler source code from GitHub.
The language compiler is written in Haskell, and should be able to compile on Unix-based operating systems. You will also need the Cabal build tool.
After obtaining both, you can build the compiler using: