Instalation
Clone the Ernest1338/black repository:
$ git clone https://github.com/Ernest1338/black.gitNavigate to the project directory:
$ cd blackUse cargo to build the project:
$ cargo build --releaseBlack compiler / interpreter should now be accessible as a build aftifact at ./target/release/black
MacOS instructions are the same as linux.
Clone the Ernest1338/black repository:
$ git clone https://github.com/Ernest1338/black.gitNavigate to the project directory:
$ cd blackUse cargo to build the project:
$ cargo build --releaseBlack compiler / interpreter should now be accessible as a build aftifact at ./target/release/black
I am not actively using windows. I don’t know if black compiles and or runs on this system.
Either way instalation steps should be similar to unix, clone the source code, compile the code using cargo and use the resulting binary.
YOU ARE ON YOUR OWN: Good luck.
Get a prebuilt binary from Github Actions
TODO
Install QBE backend
TODO
Test if the compiler / interpreter is working
While beeing in the target/release directory (or any other containing the black binary) execute:
$ ./black -VYou should see version information printed to the screen, similar to this:
Black version: v0.0.1Now you can continue learning basics of the black lang, go to the Getting Started page for next steps.